由于yum install supervisor 会默认使用python2.6环境,首先要安装好python2.6的环境,然后修改以下文件首行为2.6即可
[root@VM_0_15_centos ~]# cat /usr/bin/supervisord #!/usr/bin/python2.6 from supervisor.supervisord import main # __doc__ required to make supervisord -h work from supervisor.supervisord import __doc__ main() [root@VM_0_15_centos ~]# cat /usr/bin/supervisorctl #!/usr/bin/python2.6 from supervisor.supervisorctl import main # __doc__ required to make supervisorctl -h work from supervisor.supervisorctl import __doc__ main() [root@VM_0_15_centos ~]#
参考:https://blog.csdn.net/englishsname/article/details/79082684