Alex Rivera | Logout

How do you keep mongo running on a remote server?

Asked 2012-01-11T22:26:40.347
18

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?

Edit
Report

1 Answer

1

You can use screen too for this purpose.

First execute the command

screen

Then run your server using

mongod --dbpath=/example/dbpath

Then detach it by pressing ctrl+a and then pressing d

answered 2012-01-12T03:50:18.457

Your Answer