只需要修改/etc/hosts即可
修改前:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 dingm localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.101 dingm
修改后:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain dingm
::1 localhost6.localdomain6 localhost6
192.168.0.101 dingm