解决apache启动错误:Could not reliably determine the server's fully qualified domain name
2014-05-09 18:05
337 查看
原文地址:http://www.2cto.com/os/201201/117797.html
启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
[root@server 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的安装目录:(视个人安装情况而不同) [root@server ~]# cd /usr/local/apache/conf
2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
[root@server conf]# ls
extra httpd.conf magic mime.types original
[root@server conf]# vi httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
3)再重新启动apache 即可。
[root@server ~]# /usr/local/apache/bin/apachectl restart
启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
[root@server 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的安装目录:(视个人安装情况而不同) [root@server ~]# cd /usr/local/apache/conf
2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
[root@server conf]# ls
extra httpd.conf magic mime.types original
[root@server conf]# vi httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
3)再重新启动apache 即可。
[root@server ~]# /usr/local/apache/bin/apachectl restart
相关文章推荐
- APMServ错误解决办法:1、Apache启动失败,请检查相关配置
- Apache启动时报php_ldap.dll找不到指定的模块错误的解决
- 解决apache启动错误"httpd:Could not reliably determine..."
- Windows下PHP安装路径配置错误导致Apache无法启动的解决方法
- 解决apache启动错误"httpd:Could not reliably determine..."
- Apache shutdown unexpectedly启动错误解决方法
- Apache shutdown unexpectedly启动错误解决方法
- 部署OpenStack问题汇总(七)--解决apache启动错误"httpd:Could not reliably determine..."
- PHP Apache shutdown unexpectedly启动错误解释及解决办法
- Windows下PHP+Eclipse开发环境搭建 及错误解决(apache2.2服务无法启动 发生服务特定错误:1)
- 【转载】Apache shutdown unexpectedly启动错误解决方法
- 解决apache启动错误"httpd:Could not reliably determine..."
- Apache VirtualHost 启动失败 无错误日志解决
- 解决apache启动错误"httpd:Could not reliably determine..."
- Apache启动提示错误undefined symbol: libiconv_open解决方法
- Hadoop HA HDFS启动错误之org.apache.hadoop.ipc.Client: Retrying connect to server问题解决
- 服务启动Apache服务,错误Parent: child process exited with status 3 -- Aborting.解决
- 解决apache启动错误"httpd:Could not reliably determine..."
- 解决Apache启动时错误提示
- Apache无法启动,终极解决方法,适用于“应用程序无法正常启动 0xc000007b”错误