pve默认hosts文件内容

我不小心。。在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.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容