解决apache启动错误"httpd:Could not reliably determine..."

Posted 青丝锁刘peng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决apache启动错误"httpd:Could not reliably determine..."相关的知识,希望对你有一定的参考价值。

启动apache遇到错误:httpd: Could not reliably determine the server‘s fully qualified domain name

[[email protected] httpd-2.2.4]# /usr/local/apache/bin/apachectl start

 

httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName
 
1)进入apache的安装目录:(视个人安装情况而不同)

[[email protected] ~]# cd /usr/local/apache/conf

2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80

[[email protected] conf]# ls

extra  httpd.conf  magic  mime.types  original

[[email protected] conf]# vim httpd.conf

#ServerName www.example.com:80
ServerName localhost:80
3)再重新启动apache 即可。

[[email protected] ~]# /usr/local/apache/bin/apachectl restart

 

以上是关于解决apache启动错误"httpd:Could not reliably determine..."的主要内容,如果未能解决你的问题,请参考以下文章

解决apache启动错误"httpd:Could not reliably determine..."

Apache 443端口占用解决方法

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

Apache错误:无法加载mod_access_compat.so

求高手解决啊 关于apache启动加载模块错误

Apache Hive启动报NoClassDefFoundError错误