在apache 的日志error_log下发现
[Mon Dec 24 10:43:00 2007] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "phpwhy.com"
Configuration Failed
[Mon Dec 24 10:51:40 2007] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "phpwhy.com"
Configuration Failed
造成apache 不能启动
第一方法:
在/etc/hosts 下添加
218.106.244.209 phpwhy.com
第二种方法
将httpd.conf里的ServerName 改为IP对应
在/etc/rc.conf中添加一行 apache_enable="YES"
阅读(1263) | 评论(0) | 转发(0) |