现在的位置: 首页运维|APPServer>正文
apache启动报No address associated with hostname: mod_unique_id: unable to find IPv4 address
发表于339 天前 运维|APPServer 暂无评论 ⁄ 被围观 +

不能启动httpd服务,提示 mod_unique_id: unable to find IPv4 address of …

重新编译apache,重新启动后,apache不能启动。

我接着查httpd-error.log,有下面的记录

(EAI 7)No address associated with hostname: mod_unique_id: unable to find IPv4 address of "liubei"Configuration Failed

原因是找不到”liubie”对应的主机

解决方法:

echo 127.0.0.1 liubei >> /etc/hosts

或者

注释掉LoadModule unique_id_module libexec/apache2/mod_unique_id.so

给我留言


/ 快捷键:Ctrl+Enter
不想听你唠叨×