一、Centos7中修改的方法:

  hostnamectl set-hostname <new hostname>

  说明:centOS 7 里面修改hostname的方式有所改变,修改/etc/hosts和/etc/sysconfig/network两个文件已经不能生效。

  使用的新命令是 : hostnamectl set-hostname name。

相关文章:

  • 2022-12-23
  • 2022-01-13
  • 2021-10-30
  • 2021-08-21
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2021-12-20
  • 2022-01-22
  • 2021-08-28
  • 2022-12-23
相关资源
相似解决方案