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?
You can use screen too for this purpose.
screen
First execute the command
Then run your server using
mongod --dbpath=/example/dbpath
Then detach it by pressing ctrl+a and then pressing d
d