有时候需要在Linux上设置一个后台进程,但是当你关闭terminal之时,它会被系统kill掉,那该如何来实现其后台进程能一直运行下去呢?
使用方式:
nohup demo.py &
当在屏幕上敲击上述命令之后,屏幕上会出现如下信息:
$ nohup: ignoring input and appending output to `nohup.out’
敲击回车,就退出了nohup.out当前的界面,进入正常的命令行。
有时候需要在Linux上设置一个后台进程,但是当你关闭terminal之时,它会被系统kill掉,那该如何来实现其后台进程能一直运行下去呢?
使用方式:
nohup demo.py &
当在屏幕上敲击上述命令之后,屏幕上会出现如下信息:
$ nohup: ignoring input and appending output to `nohup.out’
敲击回车,就退出了nohup.out当前的界面,进入正常的命令行。