linux process view and closed under python

View the process

ps -ef | grep python

Close process

kill -9 26879

Where 26879 is the process ID.

linux under the background of a script

nohup python -u  xxx.py > out.log 2>&1 &

Which xxx.py is your python script file to be executed

Guess you like

Origin www.cnblogs.com/teamemory/p/12082902.html