日期:2014-05-16  浏览次数:20872 次

Apache22 启动异常
FreeBSD安装apache22后启动异常
httpd: Could not reliably determine the server's fully qualified domain name, using www.example.org for ServerName
Syntax OK
Starting apache22.
httpd: Could not reliably determine the server's fully qualified domain name, using www.example.org for ServerName

解决办法:
修改/etc/hosts:
127.0.0.1 localhsot
然后修改http.conf,加入
ServerName localhost:80

然后启动,直接提示failed to start,没有任何其他的提示,我们可以在log里面找信息,路径在/var/log,文件为httpd-error.log,查看内容,发现异常原因,于是在/etc/hosts里面加入一行
yourIPAddress   yourHostName
即可