1、用nohup在后台常驻运行php脚本:
nohup php -f /www/wwwroot/default/redis_subscribe.php &
2、查看进程:
ps -ef|grep redis_subscribe.php
3、查看所有进程:
ps -ef
4、查看某一进程:
ps [PID]
5、终止进程:
kill -9 [PID]
1、用nohup在后台常驻运行php脚本:
nohup php -f /www/wwwroot/default/redis_subscribe.php &
2、查看进程:
ps -ef|grep redis_subscribe.php
3、查看所有进程:
ps -ef
4、查看某一进程:
ps [PID]
5、终止进程:
kill -9 [PID]