77 字
1 分钟
Centos7.9 国内仓库源配置
1、关闭防火墙和selinux安全
$ systemctl stop firewalld && systemctl disable firewalld$ setenforce 0$ sed -i 's/SELINUX=.*/SELINUX=disabled/' /etc/selinux/config2、配置repo仓库,阿里华为二选一
华为源仓库
$ mv /etc/yum.repos.d/* /media/$ curl -o /etc/yum.repos.d/huaweicloud.repo https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo$ yum clean all && yum makecache阿里源仓库
$ mv /etc/yum.repos.d/* /media/$ curl -o /etc/yum.repos.d/aliyun.repo http://mirrors.aliyun.com/repo/Centos-7.repo$ yum clean all && yum makecache Centos7.9 国内仓库源配置
http://blog.xeu.asia/posts/linux环境基础配置/centos79-国内仓库源配置/