美文网首页
pve默认hosts文件内容

pve默认hosts文件内容

作者: 小黑佬 | 来源:发表于2021-05-28 11:43 被阅读0次

    我不小心。。在pve安装了cloud-init。。。直接把我的配置hosts和hostname改了,导致pve web无法正常访问。此处提供一份pve hosts用作参考,吧hosts和hostsname更正回原来的,然后重启就可以了。

    root@proxmox-6-175:~# cat /etc/hosts
    
    127.0.0.1 localhost.localdomain localhost
    192.168.6.175 proxmox-6-175.proxmox.com proxmox-6-175 pvelocalhost
    
    # The following lines are desirable for IPv6 capable hosts
    
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    

    来自论坛的摘录
    I ran into this problem a lot on several occasions.
    ie issues with (/etc/pve/local/pve-ssl.key)

    How to fix is.. i only tried this with new installs.

    make sure ip can be resolved to hostname

    That is ensure that
    listed hostname in /etc/hostname is listed in /etc/hosts with ipaddress

    then run pvecm updatecerts to regenerate certificates.

    hope this helps anyone who runs into this problem.

    相关文章

      网友评论

          本文标题:pve默认hosts文件内容

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