设置主机名
# 查看主机名
hostname
# 删除文件内容该为要设置的主机名Master
vim /etc/hostname
ip映射
# 打开hosts文件在低端加入ip 主机名 格式,etc: 192.168.242.130 Master
vim /etc/hosts
# 重启网络服务
systemctl restart network
设置主机名
# 查看主机名
hostname
# 删除文件内容该为要设置的主机名Master
vim /etc/hostname
ip映射
# 打开hosts文件在低端加入ip 主机名 格式,etc: 192.168.242.130 Master
vim /etc/hosts
# 重启网络服务
systemctl restart network