运行supervisorctl reload报错解决方法

在进行守护进程时运行supervisorctl reload出现“error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 224”

查了半天终于找打答案:有可能是supervisor已经启动,不正常关闭导致的。

解决方法:

1、执行

ps ax | grep supervisord

找到PID号,记下来。

2、执行

kill -9 PID号   结束进程

杀死进程。

3、执行

supervisorctl reload #最后重新载入配置

成功!

原文地址:https://www.cnblogs.com/mhq-martin/p/8647174.html