CentOS7初始化配置教程

1.修改机器名

hostnamectl set-hostname chen(机器名)

2.修改ip地址

vi /etc/hosts

2.1在文件末尾添加ip地址

192.168.239.100(ip地址) chen(机器名) 

3.修改静态地址

vi /etc/sysconfig/network-scripts/ifcfg-ens33

3.1修改IPADDR为192.168.239.100(ip地址)

3.2按下Esc,再输入英文版的:wq保存退出

4.重启网络

systemctl restart network

5.关闭防火墙

systemctl stop firewalld
systemctl disable firewalld

你可能感兴趣的:(虚拟机,centos,linux)