Centos 简单优化

安装基本工具
1
yum install -y wget vim net-tools lrzsz

删除UUID

1
2
3
vim ifcfg-ens33
vim ifcfg-eth0
vim em1

配置静态IP

1
2
3
4
5
IPADDR=10.0.0.130
GATEWAY=10.0.0.2
NETMASK=255.255.255.0
DNS1=10.0.0.2
DNS2=1.2.4.8

关闭防火墙以及NetworkManager和SELINX

1
2
3
4
5
systemctl restart network
systemctl stop firewalld
systemctl disable firewalld
systemctl stop NetworkManager
systemctl disable NetworkManager

替换YUM源

1
2
3
4
yum clean all && yum makecache
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.bak
vim CentOS-Base.repo