文章目录
1.更改主机名
vi /etc/hostname
2.关闭selinux
vi /etc/selinux/config
编辑:SELINUX = disabled
3.关闭火墙
systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld
4.重启机器
shutdown –r 0
5.设置ip
cd /etc/sysconfig/network-scripts
ls –l
vi ifcfg-eth0
更改:
BOOTPROTO = static
ONBOOT = yes
添加:
IPADDR=xx.x.xxx.xxx
NETMASK=255.255.255.0
GATEWAY=xx.x.xxx.x
DNS1=xx.x.xxx.xxx
DNS2=xx.x.xxx.xxx
重启:systemctl restart network
6.挂载yum源
https://blog.csdn.net/fanxindong0620/article/details/103581903