Created
October 1, 2011 09:37
-
-
Save TertiumQuid/1255805 to your computer and use it in GitHub Desktop.
MongoDB MMS Unbuntu CL Installation and Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install python-pip | |
| sudo pip install pymongo | |
| curl -o 10gen-mms-agent.zip https://mms.10gen.com/settings/10gen-mms-agent.zip | |
| sudo apt-get install unzip | |
| unzip 10gen-mms-agent.zip | |
| cd mms-agent | |
| sudo cat > /etc/init/mms.conf << EOF | |
| #!upstart | |
| description "MongoDB Monitoring Service Agent" | |
| start on started network-services | |
| stop on shutdown | |
| script | |
| nohup python agent.py > /var/log/mms.log 2>&1 & | |
| end script | |
| EOF | |
| sudo touch /var/log/mms.log | |
| sudo chown ubuntu:root /var/log/mms.log | |
| sudo sed 's/API_KEY/xxxxxxxxxxxxxxx/g' settings.py | |
| sudo sed 's/SECRET_KEY/xxxxxxxxxxxxxxx/g' settings.py | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment