yum源更换为阿里云yum源

7年前 (2017-05-26) gtj linux基础 0评论 已收录 1137℃

配置repo源和安装常用命令

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 install -y net-tools vim wget lrzsz tree screen lsof tcpdump

关闭防火墙selinux

/etc/init.d/iptables stop
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
grep SELINUX=disabled /etc/selinux/config
setenforce 0

调整文件描述符

echo '* - nofile 100000 ' >>/etc/security/limits.conf

更新系统并重启

yum update -y && reboot

博主

这货来去如风,什么鬼都没留下!!!

相关推荐

嗨、骚年、快来消灭0回复。

×
订阅图标按钮
Less is more!!!