美文网首页
修改HOST文件,设置网络访问地址

修改HOST文件,设置网络访问地址

作者: 催化剂 | 来源:发表于2020-03-05 10:11 被阅读0次

    hostnamectl

    hostname --查看主机名称

    ----------------------------------------

    vim /etc/hosts

    127.0.0.1      localhost

    127.0.1.1      ubuntu

    172.19.25.91 slave1

    172.19.25.92 slave2

    172.19.20.76 registry.fpi-inc.hz

    # The following lines are desirable for IPv6 capable hosts

    ::1    localhost ip6-localhost ip6-loopback

    ff02::1 ip6-allnodes

    ff02::2 ip6-allrouters

    相关文章

      网友评论

          本文标题:修改HOST文件,设置网络访问地址

          本文链接:https://www.haomeiwen.com/subject/ixjtrhtx.html