在我的腻子终端中,我输入了如下命令:
[username@vm186 bin]$ nohup ./mongod --dbpath ~/mongodb-data/ &
[1] 5967
[username@vm186 bin]$ nohup: appending output to `nohup.out'
然后,ps
显示nohup
显然无效!
[username@vm186 bin]$ ps -auxw | grep mongo
username 5967 0.0 0.0 76172 4716 pts/8 Sl 10:03 0:00 ./mongod --dbpath /home/username/mongodb-data/
username 6140 0.0 0.0 61192 780 pts/8 S+ 10:04 0:00 grep mongo
所以,当我关闭窗口时,mongod 将收到信号并退出。
我的命令有什么问题?还是我的腻子配置有问题?