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?
Take a look here. In short, you should use mongod --fork --logpath /var/log/mongod.log
mongod --fork --logpath /var/log/mongod.log
Start it as a service. Here's the command
sudo service mongod start