由于主机名的问题导致Apache无法启动。

由于主机名的问题导致Apache无法启动。-renwd-ChinaUnix博客  http://blog.chinaunix.net/uid-182114-id-4217182.html
今天启动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,服务正常启动
 
posted @ 2022-09-03 16:49  ingemar,fang  阅读(37)  评论(0编辑  收藏  举报