VirtualBox修改Centos修改主机名

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

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

VirtualBox修改Centos修改主机名

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

VirtualBox修改Centos修改主机名

 

相关文章:

  • 2021-11-03
  • 2021-12-18
猜你喜欢
  • 2021-10-17
  • 2021-06-15
  • 2021-07-17
  • 2021-05-04
  • 2022-01-11
  • 2022-01-12
相关资源
相似解决方案