修改ip位址、網關(修改配置檔案)
vim /etc/sysconfig/network-scripts/ifcfg-ens33
[root@server ~]# service network restart //激活服務
Restarting network (via systemctl): [ OK ]
修改主機名 (修改主機名配置檔案)
[root@server ~]# vim /etc/hostname
[root@server ~]# reboot //重新開機生效
DNS主配置檔案 (DNS作用:将域名解析為IP位址)
vim /etc/resolv.conf
關閉Selinux
vim /etc/selinux/config
disabled 禁用模式
permissive 寬松模式
enforcing 強制模式
reboot //重新開機生效
清空iptables
iptables -F
更新yum源及必要軟體安裝
yum -y update
yum clean all
ping指令是檢測網絡是否聯通
telnet指令是檢測端口是否開通