源改为国内源
阿里云yum源
https://opsx.alibaba.com/mirror
清华yum源
https://mirrors.tuna.tsinghua.edu.cn/
网易163yum源
关闭SELinux
临时关闭SELinux
永久关闭SELinux
Linux下安装软件
联网安装
修改系统yum源:阿里云
# https://opsx.alibaba.com/mirror 来源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
无法上网排查
使用CentOS 光盘镜像
加载光盘到虚拟机