Skip to content

Instantly share code, notes, and snippets.

@flomotlik
Last active August 29, 2015 14:01
Show Gist options
  • Save flomotlik/d4319412d8d178e97171 to your computer and use it in GitHub Desktop.
Save flomotlik/d4319412d8d178e97171 to your computer and use it in GitHub Desktop.
Run Mongo 2.4
#Change the path to the downloaded file here to update the mongo version
wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.10.tgz
tar xvzf mongo*
cd mongo*
mkdir ~/mongodb
# You can change the parameters mongodb starts with here
nohup bash -c "./bin/mongod --port 27018 --dbpath ~/mongodb 2>&1 &" && sleep 6; cat nohup.out
cd ~/clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment