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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

少陽君

谢谢老板的拿铁

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值