1、安装ifconfig和VIM:
yum install -y net-tools
yum -y install vim
firewall是centos7里面的新的防火墙命令,它底层还是使用 iptables 对内核命令动态通信包过滤
简单理解就是firewall是centos7下管理iptables的新命令。
2、关闭SELinux
安全增强型 Linux(Security-Enhanced Linux)简称 SELinux,学精难度较大,建议关闭
vi /etc/selinux/config
#注释掉下面两行
#SELINUX=enforcing
#SELINUXTYPE=targeted
#增加一行
SELINUX=disabled
使设置启用
setenforce 0 // 在这里最好重启一下系统,也可以稍后重启
3、安装weget
yum install -y wget
添加阿里源:
#先进入源的目录
cd /etc/yum.repo.d
#备份一下官方源
mv CentOS-Base.repo CentOS-Base.repo.bak
#将阿里源文件下载下来
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#重建源数据缓存
yum makecache
ok,换源完成