Centos6.9系统部分基础优化(更新时间2018/04/19)
系统信息: [root@nfs01 ~]# uname -r 2.6.32-696.el6.x86_64 [root@nfs01 ~]# uname -m x86_64 [root@nfs01 ~]# cat /etc/redhat-release CentOS release 6.9 (Final) 更改yum源 mv /etc/yum.repos.d/CentOS-Base.repo{,.$(date +%F_%T).backup} wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo yum makecache 关闭SELinux \cp /etc/selinux/config{,.$(date +%F_%T).backup} sed -i "s#SELINUX=enforcing#SELINUX=disabled#g" /etc/selinux/config grep 'SELINUX=disable' /etc/selinux/config setenforce 0 getenforce