supervisor error: , [Errno 2] No such file or directory: file: /usr/lib64/python2.7/socket.py line: 224


一、检查supervisord.conf的配置的具体项目中是否指定了用户:

[program:task]                                       #管理进程的命名
command=python test.py  -c test.conf          #执行的命令
stderr_logfile=/var/log/supervisor/test.log      #错误日志输出路径
stdout_logfile=/var/log/supervisor/test.log      #日志输出路径
directory=/root/test                    #命令执行的工作空间
autostart=true                       #自动启动
user=root                          #指定用户
autorestart=true 
如果没有,添加该用户在执行
 
二、先执行如下命令:

systemctl start supervisor
systemctl enable supervisor

在执行

supervisorctl reload


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM