terminal上执行的 python 程序如何能在关闭终端时继续执行?

python /home/neil/www/test/manage.py runserver 0.0.0.0:8888 &
& 加在命令的最后

但是只加&是不够的,终端退出时会向所有进程发SIGHUP信号
这样可以
nohup python … &

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>