进程重启,就会运行新的程序。
service supervisor restart
怎么定义要守护的进程?
cd /etc/supervisor/
cd conf.d
nano pgx.conf
遇到错误:
Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
解决办法:
find / -name supervisor.sock unlink /***/supervisor.sock
查看正在运行的:
supervisorctl
停止一个:
supervisorctl stop writeReport
status
start all
stop all