服务器后台运行程序与查看

让程序在服务器后台运行

 nohup python test.py &

查看运行的进程  ps

根据id查找  ps -p id

寻找运行的进程  ps -axu | grep xxx

停止进程  kill 进程id

猜你喜欢

转载自www.cnblogs.com/zwp-627/p/11738344.html