1、 需要 ifconfig 查看 ip
yum search ifconfig
找到 net-tools.x86_64,然后
yum install -y net-tools.x86_64
这样就可以使用 ifconfig 命令查看 ip
2、安装编辑器 vim
yum install -y vim*
3、安装wget工具
yum install -y wget
4、设置国内镜像源
备份默认的yum源文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
CentOS7版本
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清理yum缓存
yum clean all
清理后重建缓存
yum makecache
升级Linux系统
yum -y update
5、关闭防火墙
检查防火墙状态
systemctl status firewalld
关闭防火墙
systemctl stop firewalld.service
设置开机禁用防火墙
systemctl disable firewalld.service
注销,注销之后无法启动
systemctl mask firewalld.service