检查两个地方:

1:

vi /etc/sysconfig/network
HOSTNAME=yourlinuxhostname


2:

vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost yourlinuxhostname

Logo

更多推荐