本文共 842 字,大约阅读时间需要 2 分钟。
/etc/init.d/iptables stopchkconfig iptables offsed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/configgrep SELINUX=disabled /etc/selinux/configsetenforce 0
systemctl stop firewalld.servicesystemctl disable firewalld.servicesed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/configgrep SELINUX=disabled /etc/selinux/configsetenforce 0
cd /etc/yum.repos.d/\cp CentOS-Base.repo CentOS-Base.repo.$(date +%F)wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
yum -y install epel-release
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupcd /etc/yum.repos.d/wget http://mirrors.163.com/.help/CentOS7-Base-163.repoyum clean allyum makecache
yum -y install epel-release
转载于:https://blog.51cto.com/10880347/2306910