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?

Answer:

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

Leave a Reply