码迷,mamicode.com
首页 > Web开发 > 详细

部署OpenStack问题汇总(七)--解决apache启动错误"httpd:Could not reliably determine..."

时间:2016-01-31 02:36:48      阅读:247      评论:0      收藏:0      [点我收藏+]

标签:

今天在调试openstack的时候,重启apache,出现以下报错:

[root@hctrl log]# service httpd restart
停止 httpd:[确定]
正在启动 httpd:httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName
[确定]
 
在/etc/hosts上折腾了一会,无果。
后来在google和baidu上搜索发现,需要在http配置文件中修改一个地方
1)进入apache的安装目录:(视个人安装情况而不同) [root@server ~]# cd /usr/local/apache/conf
 
2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
 
重启httpd正常
[root@hctrl ~]# 
[root@hctrl ~]# service httpd restart
停止 httpd:[确定]
正在启动 httpd:[确定]

部署OpenStack问题汇总(七)--解决apache启动错误"httpd:Could not reliably determine..."

标签:

原文地址:http://www.cnblogs.com/horizonli/p/5172247.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!