ubuntu 设置HOSTNAME需要修改两个文件: /etc/hostname /etc/hosts
root
@RogerPC:~
RogerPC
root
@RogerPC:~
127.0.
0.
1 localhost
127.0.
1.1 RogerPC
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
root
@RogerPC:~
转载请注明原文地址: https://ju.6miu.com/read-1125167.html