terminal上执行的 python 程序如何能在关闭终端时继续执行?
December 12th, 2007
python /home/neil/www/test/manage.py runserver 0.0.0.0:8888 &
& 加在命令的最后
但是只加&是不够的,终端退出时会向所有进程发SIGHUP信号
这样可以
nohup python … &
python /home/neil/www/test/manage.py runserver 0.0.0.0:8888 &
& 加在命令的最后
但是只加&是不够的,终端退出时会向所有进程发SIGHUP信号
这样可以
nohup python … &
Recent Comments