1. nohup

常规格式:

nohup command &

0,1,2 输入(<),输出(>),输出error(>)

nohup python3 x.py > /dev/null 2>&1 &

!!!注意 nohup挂起后需要键入exit退出终端,然后再关闭shell!

查看与python3相关的后台进程:

ps -ef|grep python3

results matching ""

    No results matching ""