标签:更换 阿里云 ORC systemctl lin 源地址 reboot 部分 wget
# Insatll wget
yum install -y wget
# Backup repo;
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.bak
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
# clean session
yum clean all
yum makecache
# 注:centos 源地址有很多,自己更换源地址大部分都更换阿里云源地址
# ISRC镜像站:https://mirror.iscas.ac.cn/mirror/centos.html
#stop firewalld
systemctl stop firewalld
systemctl disable firewalld
sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/‘ /etc/selinux/config
reboot
sestatus
#firewalld
https://zhuanlan.zhihu.com/p/165602516 转载知乎 “一起玩转Linux”,侵权删
// 根据使用程度不断更新
标签:更换 阿里云 ORC systemctl lin 源地址 reboot 部分 wget
原文地址:https://www.cnblogs.com/chyc/p/14606639.html