linu后台执行py文件和关闭的后台py文件

后台执行py

nohup python  xxx.py

关闭后台执行py

查看进程pid

ps -aux|grep main.py

根据pid关闭关闭进程

kill -9  (pid)

 

posted @ 2018-12-28 10:11  Python研究者  阅读(780)  评论(0编辑  收藏  举报