Could not reliably determine the server's fully qualified domain name
2015-11-23 11:52
507 查看
启动apache服务器时出现错误(标红部分)
[root@localhost ~]# cd /usr/local/apache/bin
[root@localhost bin]# ./apachectl -k start
httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[root@localhost bin]#
解决办法:
进入/usr/local/apapche2/conf目录修改配置文件
[root@localhost bin]# cd /usr/local/apapche2/conf
[root@localhost conf]# gedit httpd.conf
将ServerName 后边的值改为localhost:80并去掉前边的注释
保存后重新启动apache服务器在浏览器中输入:http://localhost:80
![](http://s4.51cto.com/wyfs02/M01/76/64/wKioL1ZSjaSQAM8oAABOnrY7xqQ072.png)
[root@localhost ~]# cd /usr/local/apache/bin
[root@localhost bin]# ./apachectl -k start
httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[root@localhost bin]#
解决办法:
进入/usr/local/apapche2/conf目录修改配置文件
[root@localhost bin]# cd /usr/local/apapche2/conf
[root@localhost conf]# gedit httpd.conf
将ServerName 后边的值改为localhost:80并去掉前边的注释
保存后重新启动apache服务器在浏览器中输入:http://localhost:80
![](http://s4.51cto.com/wyfs02/M01/76/64/wKioL1ZSjaSQAM8oAABOnrY7xqQ072.png)
相关文章推荐
- Pull is not possible because you have unmerged ...
- Ubuntu 下修改 Could not reliably determine the serve
- 解决Default storage engine (InnoDB) is not available导致mysql无法启动的修改办法
- MySQL4 File ‘c:\mysql\share\charsets\?.conf’ not found (Errcode: 22)的解决方法
- SQL中IS NOT NULL与!=NULL的区别
- 解析thinkphp中的M()与D()方法的区别
- mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
- movie not found的解决办法(iis)
- 解决bash: mysql: command not found 的方法
- MySQL 启动报错:File ./mysql-bin.index not found (Errcode: 13)
- Windows平台的 PHP 报错 Fatal error: Class COM not found in 的解决方法
- Apache启动错误Permission denied: httpd: could not open error log file解决方法
- sql not in 与not exists使用中的细微差别
- MYSQL出现" Client does not support authentication "的解决方法
- bash scp command not found的解决方法
- Python RuntimeError: thread.__init__() not called解决方法
- mysql could not be resolved: Name or service not known
- 执行setup,报错 -bash: setup: command not found
- bash:.....:command not found
- dlang操作mysql