Linux 运维 之 命令后台运行

1、启动后台脚本命令

参考: https://www.ibm.com/developerworks/cn/linux/l-cn-nohup/

nohup : nohup python ./account_main.py  >> ./log.log 2>&1 &

setsid

&

screen

2、一次关闭多个后台命令

参考:https://www.jb51.net/LINUXjishu/43534.html

ps -aux|grep main|grep python|cut -c 9-15|xargs kill -9

发布了78 篇原创文章 · 获赞 4 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/wangxiaosu/article/details/80896522