环境
- Linux (CentOs 7)
- php
- pip
pip 安装
下载get-pip.py 文件
wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
执行安装
python get-pip.py
执行命令
pip install supervisor
遇到错误
ERROR: Cannot uninstall 'meld3'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决方案:
- 先查路径
find / -name 'melds'
- 如果查询到结果:
执行:rm -rf /usr/lib64/python2.7/site-packages/meld3-0.6.10-py2.7.egg-info
再次执行安装 supervisor 命令
pip install superviosr
追加错误
- 在Linux 重启supervisor 时出现下面这个
error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib64/python2.7/socket.py line: 224
解决方案:
执行:
sudo service supervisord restart
在执行
sudo supervisorctl reload