I installed mongodb for learning purpose, the problem I am facing is that it starts on system boot and consume resources even if not being used. I want it to be removed from system boot, how can I do this?
Asked
Active
Viewed 2.8k times
5 Answers
18
I can't test it at the moment, but I think this should work
sudo update-rc.d mongodb disable
If this is not enough try this
sudo update-rc.d -f mongodb remove
SpinningTop
- 409
4
@davelupt's reference is great. However I guess the command should be
echo manual | sudo tee /etc/init/mongod.override
since the file for MongoDB under /etc/init is mongod.conf.
Robert
- 141
- 2