我正在尝试为Laravel设置队列监听器,但无法正确使用Supervisor。 运行supervisorctl reload
时出现以下错误:
error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228
该文件确实存在。 如果尝试运行sudo supervisorctl
,则会收到此消息unix:///var/run/supervisor.sock no such file
。
我已尝试重新安装Supervisor,但仍然无法解决问题。 不确定该怎么办。
我正在运行Laravel Homestead(Ubuntu 16.04)。
service supervisor status
的结果为:
vagrant@homestead:~/Code$ sudo service supervisor status
● supervisor.service - Unix的Supervisor进程控制系统
Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2016-12-22 11:06:21 EST; 41s ago
Docs: http://supervisord.org
Process: 23154 ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown (code=exited, status=0/SUCCESS)
Process: 23149 ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf (code=exited, status=2)
Main PID: 23149 (code=exited, status=2)
service supervisor --status
并告诉我们它显示什么(可能是“services”而不是“service”——我没有记住所有的Linux命令)。 - stevendesuservice supervisor status
的结果。 - Michaelsudo service supervisor start
启动 Supervisor,然后使用sudo supervisorctl
命令。 - baikho