ubuntu 永久设置HOSTNAME

    xiaoxiao2022-06-29  52

    ubuntu 设置HOSTNAME需要修改两个文件: /etc/hostname /etc/hosts

    root@RogerPC:~# cat /etc/hostname RogerPC root@RogerPC:~# cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 RogerPC # The following lines are desirable for IPv6 capable hosts ::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

    最新回复(0)