以我油灰终端,我输入命令如下:为什么我的nohup在腻子中无效?
[[email protected] bin]$ nohup ./mongod --dbpath ~/mongodb-data/ &
[1] 5967
[[email protected] bin]$ nohup: appending output to `nohup.out'
然后,ps
显示nohup
显然是无效!
[[email protected] 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会收到信号并退出。
我的命令有什么问题?或者我的腻子配置有问题?
这是PS结果在关闭腻子窗口之前还是之后? – Radu
@Radu从前。 – kingkai
那么你关闭腻子后你会退出吗?关闭它后你做了一个ps吗?如果是这样,结果如何? – Radu