centos7 關閉ssh鏈接後仍執行程序以及關閉程序

關閉鏈接後仍然運行的程序python # 格式爲 nohup command & nohup python3 proxy.py & # 重定向到其餘文件 nohup python proxy.py > myout.file 2>&1 & 關閉後臺運行的程序,首先要找出進程,而後kill掉code ps -aux|grep proxy.py # 假設查到進程id爲7751 kill -9 7751
相關文章
相關標籤/搜索