yumaz(){
rm -rf /etc/yum.repos.d/*
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
rm -rf /var/cache/yum/
yum makecache
yum -y install wget
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
rm -rf /var/cache/yum
yum makecache
yum -y install vim-enhanced* bash-completion epel-release
echo "yum安装完成"
}
#=======================================================================================
setenforce 0 && sed -ri '/^SELINUX=/ c SELINUX=disabled' /etc/selinux/config
systemctl stop firewalld && systemctl disable firewalld
hostnamectl set-hostname *****
简单初始化
最新推荐文章于 2020-10-13 18:25:11 发布