Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running mongos as background process

Tags:

mongodb

How can I run mongos as background process in an EC2 machine?

I am trying to set up a sharded cluster on EC2 machines and I am able to run mongod as background service, but I am not able to run mongos as background service.

like image 697
Indupriya Bhaskara Avatar asked Sep 29 '15 06:09

Indupriya Bhaskara


1 Answers

mongod --fork --logpath /var/log/mongod.log
like image 175
nikk wong Avatar answered Oct 20 '22 07:10

nikk wong