安装

  1. # 设置网络 自动获取ip 地址
  2. vi /etc/sysconfig/network-scripts/ifcfg-eth0
  3. 修改 ONBOOT=yes

修改 repo文件

  1. mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
  2. curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
  3. vi /etc/yum.repos.d/CentOS-Base.repo


  1. # CentOS-Base.repo
  2. #
  3. # The mirror system uses the connecting IP address of the client and the
  4. # update status of each mirror to pick mirrors that are updated to and
  5. # geographically close to the client. You should use this for CentOS updates
  6. # unless you are manually picking other mirrors.
  7. #
  8. # If the mirrorlist= does not work for you, as a fall back you can try the
  9. # remarked out baseurl= line instead.
  10. #
  11. #
  12. [base]
  13. name=CentOS-6.6 - Base
  14. baseurl=http://mirrors.aliyun.com/centos-vault/6.6/os/x86_64/
  15. gpgcheck=1
  16. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  17. [updates]
  18. name=CentOS-6.6 - Updates
  19. baseurl=http://mirrors.aliyun.com/centos-vault/6.6/updates/x86_64/
  20. gpgcheck=1
  21. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  22. [extras]
  23. name=CentOS-6.6 - Extras
  24. baseurl=http://mirrors.aliyun.com/centos-vault/6.6/extras/x86_64/
  25. gpgcheck=1
  26. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  27. [centosplus]
  28. name=CentOS-6.6 - Plus
  29. baseurl=http://mirrors.aliyun.com/centos-vault/6.6/centosplus/x86_64/
  30. gpgcheck=1
  31. enabled=0
  32. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  33. [contrib]
  34. name=CentOS-6.6 - Contrib
  35. baseurl=http://mirrors.aliyun.com/centos-vault/6.6/contrib/x86_64/
  36. gpgcheck=1
  37. # 禁用 ssl校验
  38. enabled=0
  39. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  1. yum clean all
  2. yum update
  3. yum install -y wget lrzsz
  4. yum install yum-plugin-downloadonly
  5. yum install yum-utils -y

升级 openssh(失败)

perl5 https://blog.csdn.net/warylee/article/details/84628345

Unsupported 错误 https://blog.csdn.net/weixin_43822878/article/details/102970166

https://www.alibabacloud.com/help/zh/faq-detail/48573.htm

安装telnet

https://blog.csdn.net/lz9009/article/details/99632344

升级测试2(可用)

  1. # wget http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz
  2. https://www.jianshu.com/p/8c66fdab0c1f

安装 docker

rpm -ivh docker-engine-1.7.1-1.el6.x86_64.rpm

service docker start
service docker status