Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
/usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
错误:
解决办法
1、查看/etc/hosts,内容如下:
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 localhost.localdomain localhost
2、将::1修改为127.0.0.1后,启动成功。
本文解决了一个关于localhost解析失败的问题。通过修改/etc/hosts文件中localhost的IPv4地址为127.0.0.1,成功解决了Neitherhost'localhost.localdomain' nor 'localhost' could be looked up with /usr/bin/resolveip的问题。
1316

被折叠的 条评论
为什么被折叠?



