77 字
1 分钟
CentOS 7.9 YUM 仓库源配置
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 CentOS 7.9 YUM 仓库源配置
https://blog.xeu.asia/posts/系统运维/centos-79-yum-仓库源配置/