`
sunting_bcwl
  • 浏览: 93895 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Apache22 启动异常

    博客分类:
  • Unix
 
阅读更多
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
即可
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics