一、Hostname:hostnamectl set-hostname Rserver
用 hostname 查看主机名
二、FQDN:nano /etc/hosts
ipaddress 要设置的域名 主机名
例如:172.16.100.201 Server01.chinaskills.cn Server01
用 hostname -f 查看域名
三、IP Address:nano /etc/network/interface
auto ens192 //自启动 iface ens192 inet static //静态 ip address 172.16.100.201 //IP 地址 netmask 255.255.255.128 //子网掩码 gateway 172.16.100.254 //网关