目录
下载补全
[root@localhost ~]# yum -y install bash-completion
下载vim wget unzip
[root@localhost ~]# yum -y install vim wget unzip
下载扩展yum源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
关闭防火墙
[root@localhost ~]# systemctl disable firewalld.service 永久关闭
[root@localhost ~]# vim /etc/sysconfig/selinux
SELINUX=disabled
保存退出
[root@localhost ~]#reboot
[root@localhost ~]# getenforce 查看最近selinux状态
设置静态ip
配置文件路径
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO="none"
IPADDR=192.168.*.*
NETMASK=255.255.255.0
GATEWAY=192.168.*.*
DNS1=114.114.114.114
[root@localhost ~]# systemctl restart network
yum 更新
[root@localhost ~]# yum update