解决apache启动出现ServerName错误提示[Could not reliably determine the server's fully qualified domain name]
2012-09-18 15:38
936 查看
在linux[ubuntu]环境下安装完apache服务器后, 在重启或者启动apache服务器时,会遇到如下警告:
apache2: Could not reliably determine the server's fully qualified domail name, using 127.0.0.1 for ServerName
...waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
遇到这种问题其实也不用着急, 解决方案如下:
找到 /etc/apache2/httpd.conf 文件, 默认情况下这个文件是空的, 只要在里面加入如下的定义语句:
ServerName localhost
保存退出. 然后重新启动Apache2:
service apache2 restart
或者
/etc/init.d/apache2 restart
就会发现, 那样的警告就不会出现了, 参考下图, 问题至此解决.
apache2: Could not reliably determine the server's fully qualified domail name, using 127.0.0.1 for ServerName
...waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
遇到这种问题其实也不用着急, 解决方案如下:
找到 /etc/apache2/httpd.conf 文件, 默认情况下这个文件是空的, 只要在里面加入如下的定义语句:
ServerName localhost
保存退出. 然后重新启动Apache2:
service apache2 restart
或者
/etc/init.d/apache2 restart
就会发现, 那样的警告就不会出现了, 参考下图, 问题至此解决.
相关文章推荐
- Apache启动出现错误:httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
- 安装nagios时apache启动时出现错误using localhost.localdomain for ServerName
- 解决apache启动错误:Could not reliably determine the server's fully qualified domain name
- 解决提示ADB server didn't ACK的错误,无法启动ADB服务
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Apache启动提示错误undefined symbol: libiconv_open解决方法
- 启动Apache时提示错误“Cannot load php5apache2_2.dll into server”
- 异常解决:Hadoop启动出现ssh无法解析主机名等错误提示
- 启动Apache时提示错误“Cannot load php5apache2_2.dll into server”
- 启动Apache时提示错误“Cannot load php5apache2_2.dll into server”
- 启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
- 错误: 找不到或无法加载主类 org.apache.hadoop.hdfs.server.namenode.NameNode 问题解决
- kafka启动时出现FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) java.io.IOException: Permission denied错误解决办法(图文详解)
- [乐意黎原创]因误删除导致Mysql启动时出现system error 1067 has occurred及Plugin FEDERATED is disabled 错误提示的解决方法
- 启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- 解决IIS7中出现An error occurred on the server when processing the URL错误提示的方法
- MySQL启动出现The server quit without updating PID file错误解决办法
- 解决IIS7中出现An error occurred on the server when processing the URL错误提示的方法
- 解决Win7启动网络共享出现错误提示1061的方法