今天启动APACHE时报如下错误:
Name or service not known: mod_unique_id: unable to find IPv4 address of "business"
导致APACHE无法启动,该错误是由于 机器的主机名business,未在 /etc/hosts文件配置,查看 /etc/sysconfig/network 文件,主机名配置如下
NETWORKING=yes
HOSTNAME=business
但是在/etc/hosts 文件中未有business主机名:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
解决方法,直接 127.0.0.1 对应的行上加上 business
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 business
最后重新启动apache,服务正常启动
阅读(1976) | 评论(0) | 转发(0) |