我安装主管sudo apt install supervisor
我在“/etc/supervisor/conf.d/websocket.conf”中设置了 wesocket.conf 文件。
在那里
[program:websocket]
command=/usr/bin/php /var/www/project/artisan websocket:serve
directory = /var/www/project
numprocs=1
autostart=true
autorestart=true
user=root
然后,我运行命令打击
在我的 ssh cmd
root@localhost:/etc/supervisor/conf.d# nano websocket.conf
root@localhost:/etc/supervisor/conf.d# supervisorctl update
websocket: stopped
websocket: updated process group
root@localhost:/etc/supervisor/conf.d# supervisorctl start websocket
websocket: ERROR (already started)
root@localhost:/etc/supervisor/conf.d# supervisorctl
websocket STARTING
supervisor> exit
root@localhost:/etc/supervisor/conf.d# supervisorctl restart all
websocket: stopped
websocket: ERROR (spawn error)
root@localhost:/etc/supervisor/conf.d#
** 哪里错了 **
请给我小费
谢谢