I'm working on two .Net projects which use different versions of MongoDB (3.4 and 4.0). By using separate data and log directories (as per this article) I can run both versions concurrently on demand but I would like to set this environment up on a staging server so it is necessary to have them running as services.

I can run mongod.exe with the --install option (and using --serviceName to try and avoid name clashes) and get 3.4 running but then the MongoDB v4 installer (which setups the service via an option at install time) doesn't work correctly (although v4.0 can still be run from the commandline via mongod.exe.

I would be grateful if someone could advise whether or not what I'm attempting to do is not possible or point me in the direction of a wiki or tutorial that could help me.

Thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.