nohup命令执行退出后进程退出

nohup命令常常用于让进程在后台执行。
但是如果仅仅是执行: nohup command & 之后直接关闭终端的话,会发现之前已经启动进程也会退出。
解决办法:
nohup command & 之后,看到输出: appending output to nohup.out
还需要按终端上键盘任意键退回到shell输入命令窗口,然后通过在shell中输入exit来退出终端。

【参考】
1.http://www.cnblogs.com/allenblogs/archive/2011/05/19/2051136.html  linux nohup命令用法

原文地址:https://www.cnblogs.com/nuccch/p/6347938.html