回忆之城
生命在于折腾
posts - 575,comments - 9,trackbacks - 0

httpd启动正常,但是会报错,

[root@nagios-server var]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]

解决方法
[root@nagios-server var]# vi /etc/httpd/conf/httpd.conf

找到ServerName

改成

ServerName 127.0.0.1
或者
解决方案:
进入apache的安装目录:
Windows : D:\Program Files\Apache Software Foundation\Apache2.2\conf
linux : /usr/local/apache/conf
用记事本打开httpd.conf
将里面的#ServerName localhost:80注释去掉即可。
再执行httpd
然后可以通过浏览器访问http://localhost:80,如果页面显示“It works!”,即表示apache已安装并启动成功。

posted on 2014-04-12 22:53 回忆之城 阅读(277) 评论(0)  编辑 收藏 引用 所属分类: unix/linux
只有注册用户登录后才能发表评论。