Centos7
Centos7源镜像修改
# 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
Centos7 Firewalld and SElinux
#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”,侵权删
// 根据使用程度不断更新