nohup Command [ Arg … ] [ & ]
如 nohup python test.py & 服务器不间断运行test.py文件 默认将当前的输出打印在当前目录的nohup.out文件里
能够使用ps -ef | grep test.py 来查看后台作业执行情况 获得ID
sudo kill -9 ID
ps-l 输出进程PID 通过kill %PID 终止进程
如果无法使用,切换用户 su root 密码Hisense@123 再使用 kill -9 ID
nohup Command [ Arg … ] [ & ]
如 nohup python test.py & 服务器不间断运行test.py文件 默认将当前的输出打印在当前目录的nohup.out文件里
能够使用ps -ef | grep test.py 来查看后台作业执行情况 获得ID
sudo kill -9 ID
ps-l 输出进程PID 通过kill %PID 终止进程
如果无法使用,切换用户 su root 密码Hisense@123 再使用 kill -9 ID