解决apache启动错误"httpd:Could not reliably determine..."
Posted banmuyutian
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]# vi httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
3)再重新启动apache 即可。
---------------------
作者:sam喵喵
来源:CSDN
原文:https://blog.csdn.net/zhaomininternational/article/details/42293511
版权声明:本文为博主原创文章,转载请附上博文链接!
以上是关于解决apache启动错误"httpd:Could not reliably determine..."的主要内容,如果未能解决你的问题,请参考以下文章
解决apache启动错误"httpd:Could not reliably determine..."
部署OpenStack问题汇总--解决apache启动错误"httpd:Could not reliably determine..."