查看完整版本: 如何更改Esx 的机器名?

inleon 2007-11-15 19:55

如何更改Esx 的机器名?

我使用hostname 这个命令和修改/etc/sysconfig/network这个文件来修改机器名后,重新开机会出现不能初始化机器名的错误。Esx会有问题。不知那位高人知道如何修改机器名啊。

inleon 2007-11-15 19:59

To change the host name of a machine running ESX Server, modify the following files:

/etc/hosts
/etc/sysconfig/network
/usr/lib/vmware-mui/apache/conf/httpd.conf
When editing the hosts file, include the fully qualified domain name (FQDN). For example:
ip.address.of.server host.domain.com host
Note the order of the terms in the example above. If the FQDN and the alias are reversed, the remote console parameters use the alias only.

In the httpd.conf file, change the ServerName configuration setting to reflect the new FQDN. For example:
ServerName host.domain.com

After editing the files listed above, run the hostname command with the new FQDN to have the name change take effect without a reboot. For example:
hostname host.domain.com
找到答案了。原来要修改三个文件。

[[i] 本帖最后由 inleon 于 2007-11-15 20:01 编辑 [/i]]
页: [1]
查看完整版本: 如何更改Esx 的机器名?