- 安装最新Redhat或者CentOS操作系统
- 本文使用CentOS-7-x64-1804
[root@dmtest01 ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[root@dmtest01 ~]# uname -a
Linux dmtest01 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
- 登录centos,配置aliyun.repo,关闭SELinux,关闭firewall
- 配置yum源
[root@dmtest01 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@dmtest01 ~]# yum clean all
[root@dmtest01 ~]# yum makecache
- 关闭SELinux
[root@dmtest01 ~]# /usr/sbin/sestatus -v
[root@d