supervisor upgrade 版本升级

服务器:CentOS6.5

安装supervisor命令:

yum install -y python-pip supervisor

完成安装后发现版本源里自带的版本较低(2.x),重启任务会卡死,打算升级supervisor

# pip install -U supervisor
Downloading/unpacking supervisor from https://pypi.python.org/packages/80/37/964c0d53cbd328796b1aeb7abea4c0f7b0e8c7197ea9b0b9967b7d004def/supervisor-3.3.1.tar.gz#md5=202f760f9bf4930ec06557bac73e5cf2
  Downloading supervisor-3.3.1.tar.gz (415kB): 415kB downloaded
  Running setup.py egg_info for package supervisor
    warning: no previously-included files matching ‘*’ found under directory ‘docs/.build’
Downloading/unpacking meld3>=0.6.5 from https://pypi.python.org/packages/45/a0/317c6422b26c12fe0161e936fc35f36552069ba8e6f7ecbd99bbffe32a5f/meld3-1.0.2.tar.gz#md5=3ccc78cd79cffd63a751ad7684c02c91 (from supervisor)
  Downloading meld3-1.0.2.tar.gz
  Running setup.py egg_info for package meld3
Installing collected packages: supervisor, meld3
  Found existing installation: supervisor 2.1
    Uninstalling supervisor:
      Successfully uninstalled supervisor
  Running setup.py install for supervisor
    warning: no previously-included files matching ‘*’ found under directory ‘docs/.build’
    Skipping installation of /usr/lib/python2.6/site-packages/supervisor/__init__.py (namespace package)
    Installing /usr/lib/python2.6/site-packages/supervisor-3.3.1-py2.6-nspkg.pth
    Installing echo_supervisord_conf script to /usr/bin
    Installing pidproxy script to /usr/bin
    Installing supervisorctl script to /usr/bin
    Installing supervisord script to /usr/bin
  Found existing installation: meld3 0.6.7
    Uninstalling meld3:
      Successfully uninstalled meld3
  Running setup.py install for meld3
Successfully installed supervisor meld3
Cleaning up…

如果meld3组件有报错,升级到1.0.x版本就好了。

# pip install ‘meld3 == 1.0.2′
Requirement already satisfied (use –upgrade to upgrade): meld3==1.0.2 in /usr/lib/python2.6/site-packages
Cleaning up…

更新配置文件并测试supervisor是否正常

echo_supervisord_conf > /etc/supervisord.conf

service supervisord restart

supervisorctl status

About 智足者富

http://chenpeng.info

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>