zoukankan      html  css  js  c++  java
  • centos7.7 安装指定版本的supervisor

    # 运行程序报错
    /usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.conf -u apache

    [root@eus_influenex_web01:/usr/local/php]# /usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.conf -u apache
    /usr/lib/python2.7/site-packages/supervisor/options.py:383: PkgResourcesDeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
      return pkg_resources.EntryPoint.parse("x="+spec).load(False)

    # 需要安装supervisor 3.2 以上的版本,删除原有版本 rpm -e supervisor3.1.4

    cd /usr/lib/python2.7/site-packages/
    wget https://github.com/Supervisor/supervisor/archive/3.3.5.tar.gz
    tar xf 3.3.5.tar.gz
    cd supervisor-3.3.5/
    # 发现/usr/bin/supervisord的版本还是3.1.4,删除这个可执行程序,重新运行安装即可
    python setup.py  install

    安装的时候报警处理方式

    [root@eus_influenex_web03:~]# cat  /usr/lib/python2.7/site-packages/pkg_resources/py2_warn.py
    import sys
    import warnings
    import textwrap


    msg = textwrap.dedent("""
        You are running Setuptools on Python 2, which is no longer
        supported and
        >>> SETUPTOOLS WILL STOP WORKING <<<
        in a subsequent release (no sooner than 2020-04-20).
        Please ensure you are installing
        Setuptools using pip 9.x or later or pin to `setuptools<45`
        in your environment.
        If you have done those things and are still encountering
        this message, please comment in
        https://github.com/pypa/setuptools/issues/1458
        about the steps that led to this unsupported combination.
        """)

    pre = "Setuptools will stop working on Python 2 "

    # 注释掉这行
    #sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60)

  • 相关阅读:
    jquery的动画函数animate()讲解一
    用js来实现页面的换肤功能(带cookie记忆)
    Extjs换肤+cookie皮肤记忆功能
    jquery换肤
    bootstrap的alert提示框的关闭后再显示问题
    jquery.cookie中的操作
    CSS中设置margin:0 auto; 水平居中无效的原因分析
    jQuery 遍历 json 方法大全
    jquery.min.map 404 (Not Found)出错的原因及解决办法
    AJAX 跨域请求的解决办法:使用 JSONP获取JSON数据
  • 原文地址:https://www.cnblogs.com/reblue520/p/12267963.html
Copyright © 2011-2022 走看看