700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > Supervisor socket.error No such file or directory file /usr/lib64/pyth

Supervisor socket.error No such file or directory file /usr/lib64/pyth

时间:2024-04-07 23:44:28

相关推荐

Supervisor   socket.error No such file or directory file /usr/lib64/pyth

对Linux是个小白,所以百度了一个安排教程,/chuankang/p/9473768.html按照做的,

修改Supervisor配置文件在/etc/supervisor下为supervisord.conf,修改守护进程的配置在/etc/supervisor/conf.d下,也修改了supervisord.conf配置的files=conf.d/*.conf

最后发现一直报这个错误,supervisor error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib64/python2.7/socket.py line: 224

最后百度了很多文章,也没有解决。

最后发现下面三个命令后可以执行,不会报错

# systemctl enable supervisord.service

# systemctl start supervisord.service

# systemctl status supervisord.service

所以可以避免使用supervisorctl命令的操作,而用systemctl start supervisord.service命令来启动

supervisor启动了,但发现守护进程没有启动。后来发现etc下有个配置文件/etc/supervisord.conf,并且etc下还有一个supervisord.d文件夹,直接修改files=supervisord.d/*.conf,然后把守护进程的配置文件放在/etc/supervisord.d/下,执行sudo supervisorctl reload,都正常启动了。

最终发现还是配置惹得祸。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。