• docker-compose 部分错误


    Get https://hub.17kxkx.com/v2/: dial tcp 39.106.209.67:443: connect: connection refused

    vim /etc/docker/daemon.json   添加 { "insecure-registries":["hub.xxxxx.com"] }

    重启 docker 

    systemctl restart docker.service

    1、redis服务没有起来,查看信息

    查询网上信息,发现是权限不够,于是给data这个文件 提升权限:

    chmod 777 data

    3、安装docker-compose出错

        ERROR: Command errored out with exit status 1:
         command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-SkCnbZ/pycparser/setup.py'"'"'; __file__='"'"'/tmp/pip-install-SkCnbZ/pycparser/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
    '"'"', '"'"'
    '"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-SkCnbZ/pycparser/pip-egg-info
             cwd: /tmp/pip-install-SkCnbZ/pycparser/
        Complete output (17 lines):
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-install-SkCnbZ/pycparser/setup.py", line 65, in <module>
            cmdclass={'install': install, 'sdist': sdist},
          File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
            _setup_distribution = dist = klass(attrs)
          File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
            _Distribution.__init__(self,attrs)
          File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
            self.finalize_options()
          File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 302, in finalize_options
            ep.load()(self, ep.name, value)
          File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2341, in load
            return self.resolve()
          File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2351, in resolve
            raise ImportError(str(exc))
        ImportError: 'module' object has no attribute 'check_specifier'
        ----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
    

      

    解决办法:

    [root@iZbp1eujx1zexz19c3ez84Z yongli]# easy_install --version
    setuptools 0.9.8
    [root@iZbp1eujx1zexz19c3ez84Z yongli]# pip install --upgrade setuptools==30.1.0
    DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
    Collecting setuptools==30.1.0
      Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/f1/2b/6fb5c6988b062144d4d0fd5c31cd9ff74ce8ff55e1ee2a043efff49f0c91/setuptools-30.1.0-py2.py3-none-any.whl (472kB)
         |████████████████████████████████| 481kB 24.0MB/s 
    ERROR: markdown 3.1.1 has requirement setuptools>=36, but you'll have setuptools 30.1.0 which is incompatible.
    Installing collected packages: setuptools
      Found existing installation: setuptools 36.4.0
        Uninstalling setuptools-36.4.0:
          Successfully uninstalled setuptools-36.4.0
    Successfully installed setuptools-30.1.0
    

      

  • 相关阅读:
    Static Fields and Methods
    usermod
    理解Java的Class类、"this."关键字、Constructor构造器(一)
    [REPRINT] Java 101: Classes and objects in Java
    第六章 Java并发容器和框架
    第五章 Java中锁
    第四章 Java并发编程基础
    第三章 Java内存模型(下)
    第三章 Java内存模型(上)
    第二章 并发机制的底层实现原理
  • 原文地址:https://www.cnblogs.com/liubiaos/p/9698860.html
Copyright © 2020-2023  润新知