#关闭防火墙selinux 将yum源更换成国内源
[root@localhost ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100249510024950097460--:--:----:--:----:--:--9784[root@localhost ~]# sed -i -e '/mirrors.cloud.aliyuncs.com/d'-e '/mirrors.aliyuncs.com/d'/etc/yum.repos.d/CentOS-Base.repo
[root@localhost ~]# systemctl disable --now firewalld
[root@localhost ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g'/etc/selinux/config
[root@localhost ~]# setenforce 0