我正在使用django-gunicorn nginx设置,通过遵循本教程http://ijcdigital.com/blog/django-gunicorn-and-nginx-setup/直到nginx设置,它是工作的。然后我安装了supervisor,配置了它,然后我重启了我的服务器并检查,它显示502坏网关。我使用的是Ubuntu 12.04 LTS
/etc/supervisor/conf.d/qlimp.conf
[program: qlimp]
directory = /home/nirmal/project/qlimp/qlimp.sh
user = nirmal
command = /home/nirmal/project/qlimp/qlimp.sh
stdout_logfile = /path/to/supervisor/log/file/logfile.log
stderr_logfile = /path/to/supervisor/log/file/error-logfile.log
然后我重新启动supervisor并运行这个命令$ supervisorctl start qlimp
,我得到了这个错误
unix:///var/run/supervisor.sock no such file
我的主管设置有问题吗?
谢谢!
发布于 2013-09-18 04:07:04
没有套接字文件可能意味着supervisor没有运行。它没有运行的原因可能是您的qlimp.conf文件中存在某种错误。如果你做一个
sudo service supervisor start
你可以看看是不是这样。如果supervisor已经在运行,它将显示。如果它捕捉到一个错误,它通常会给你一个比supervisorctl更有用的错误消息。
发布于 2014-11-07 00:56:08
尝尝这个
cd /etc/supervisor
sudo supervisord
sudo supervisorctl restart all
发布于 2012-05-23 16:42:27
您确定supervisord已安装并正在运行吗?/var/run/supervisor.sock
目前是否有套接字文件
该错误指示控制命令行界面supervisorctl
无法访问UNIX套接字以与守护程序supervisord
通信。
您还可以检查/etc/supervisor/supervisord.conf
,查看unix_http_server
和supervisorctl
部分的值是否匹配。
请注意,这是一个Ubuntu级别的问题,而不是Python、Django或nginx的问题,因此这个问题可能属于ServerFault。
https://stackoverflow.com/questions/10716159
复制相似问题