mongod config fork

在mongodb 的配置文件里把fork选项设置为true后,启动/usr/bin/mongod –config /etc/mongodb.conf ,就会自动的fork一个子进程来运行mongod,这样退出shell后,也会运行了。

另外看下使用fork 和nohup的区别,看下上面这个回答

http://www.waitingfy.com/archives/5203

5203

Leave a Reply

Name and Email Address are required fields.
Your email will not be published or shared with third parties.