让php程序以『守护进程』模式,在后台运行 2018-03-09 本文已影响22人 ysnows sudo nohup php -f AsyncTask.php& 关闭命令程序 通过ps -aux |grep "AsyncTask.php"查看进程 并通过kill -9 进程号杀死进程