我目前正在尝试在 RedHat Enterprise Linux 6 虚拟机中编辑我的主机名,但我遇到了一些问题。
我尝试使用这样的功能hostname:
hostname
hostname -v bravo.cmweb.com
它工作正常,我调用函数和主机名作为编辑成功。
然后,我重新启动机器,然后,哎呀,主机名又是localhost.localdomain。
localhost.localdomain
现在,我想问:如何在 Linux 中永久编辑主机名?
linux hostname redhat-enterprise-linux
hostname ×1
linux ×1
redhat-enterprise-linux ×1