Last active
December 11, 2015 14:48
-
-
Save daxxog/4616170 to your computer and use it in GitHub Desktop.
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
#auto run all this | |
#curl https://gist.github.com/raw/4616170/install-mongo-repset.sh | sh | |
#make a dev directory and switch to it | |
cd ~ | |
mkdir dev | |
cd dev | |
#download latest mongodb | |
curl http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.2.2.tgz > mongo.tgz | |
#install | |
tar -zxvf mongo.tgz | |
sudo cp ./mongo*/bin/* /usr/bin | |
sudo mkdir -p /data/db | |
#grab and install the auto mongodb script (for repset config) | |
wget https://gist.github.com/raw/4617740/2db2e39dbe30bbb8a217041494a8ea0fb6f12a6e/mongod-repset-auto.sh | |
sudo cp mongod-repset-auto.sh /usr/bin | |
sudo chmod 755 /usr/bin/mongod-repset-auto.sh | |
#grab and install the upstart service config (for repset config) | |
wget https://gist.github.com/raw/4616701/4ac7524f0f86c24209879fdf0ea8bff2f1bd8d96/mongod-repset.conf | |
sudo cp ./mongod-repset.conf /etc/init/mongod-repset.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment