VirtualBox修改Centos修改主机名

1.修改主机名字  hostnamectl set-hostname node1

VirtualBox修改Centos修改主机名2.修改hosts文件,vim /etc/hosts ,修改如下的内容

VirtualBox修改Centos修改主机名

3.重启生效,执行reboot命令,完成配置,登陆后如图

VirtualBox修改Centos修改主机名

 

相关文章:

猜你喜欢
相关资源
相似解决方案