How do you keep mongo running on a remote server?


Question

When running mongo on a remote aws server (ubuntu) what is the best way to keep a mongo instance running after sshing to it to start it?

1
16
1/11/2012 10:26:40 PM

Accepted Answer

Take a look here. In short, you should use mongod --fork --logpath /var/log/mongod.log

25
4/13/2017 12:13:38 PM

Start it as a service. Here's the command

sudo service mongod start


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon