python - 错误 : <class 'socket.error' >, [Errno 2] 没有那个文件或目录 : file:/usr/lib/python2. 7/socket.py 行:228

标签 python

当我执行 supervisorctl reload ,出现错误:

error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228

最佳答案

执行前 supervisorctl reload ,我需要运行以下命令:

/data/service/jg/Python/bin/supervisord -c /data/service/jg/Python/supervisord.conf
相应地替换您的路径( /data/service/jg/Python/bin//data/service/jg/Python/ )!

关于python - 错误 : <class 'socket.error' >, [Errno 2] 没有那个文件或目录 : file:/usr/lib/python2. 7/socket.py 行:228,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58933036/

相关文章:

python - 使用numpy将两个数组垂直合并为元组数组

python - 如何修复 numpy 浮点运算产生不精确结果的问题?

python - 执行 python manage.py runserver 时 cmp 错误超出最大递归深度

python - 不忙于等待 ZeroMQ?

python - Python 字节码在 CPython 中究竟是如何运行的?

python - 如何跳过循环中的项目

python - 如何使用 Python 通过 SSL 连接到远程 PostgreSQL 数据库

python - 我需要部署我的 lambda 来测试它是否正确?

python - ctypes、pyrex、swig 或 cython 来解决这个问题?

python - 使用 pyCrypto 的 RSA python 公钥