Supervisor简单用法
进程总是死,用Supervisor守护一下
我树莓派
$ sudo apt install supervisor -y
$ cd /etc/supervisor/conf.d/
$ vim app.conf # 这里随便改个名字都可以,一个进程一个文件
输入
[program:app]
command=php index.php
directory=/path/to/file
:wq
最后 /etc/init.d/supervisor restart
启动
关闭 supervisorctl shutdown
<-记得要加神奇的词语
知识共享署名-署名-非商业性使用-相同方式共享 4.0 国际许可协议