mongolab / mongoctl

Manage MongoDB servers and replica sets using JSON configurations!
MIT License
178 stars 25 forks source link

How to run a specific version of MongoDB? #25

Open enobufs opened 8 years ago

enobufs commented 8 years ago

I have just come across this tool and it looks really great!

I have installed a multiple versions of MongoDB:

$ mongoctl list-versions

--------------------------------------------------------------------------------
VERSION              EDITION              LOCATION
--------------------------------------------------------------------------------
2.4.12               community            /Users/ytakeda/mongodb/mongodb-osx-x86_64-community-2.4.12
2.6.10               community            /Users/ytakeda/mongodb/mongodb-osx-x86_64-community-2.6.10
3.0.8                community            /Users/ytakeda/mongodb/mongodb-osx-x86_64-community-3.0.8
3.2.0                community            /Users/ytakeda/mongodb/mongodb-osx-x86_64-community-3.2.0

Now, I would like to pick and choose one of these versions for our testing, then later switch over to the other, etc. How do I start the specific version with $ mongoctl start command?

abdulito commented 8 years ago

Unfortunately that is currently not supported but it sounds like a good feature. You will have to update the server's "mongoVersion" in the config each time you want to have use a different version. Let us think about it and we'll keep you posted.

Thanks!

twinkle023020 commented 8 years ago

How can i get the file for updating specific version of mongo?