解决apache启动错误"httpd:Could not reliably determine
2016-02-25 17:13
841 查看
启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
1)进入apache的安装目录:(视个人安装情况而不同)
2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName
localhost:80
3)再重新启动apache 即可。
[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 |
[root@server ~]# cd /usr/local/apache/conf |
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 |
[root@server ~]# /usr/local/apache/bin/apachectl restart |
相关文章推荐
- 计算机网络12--TCP/IP参考模型
- HTTP协议(二):header标头说明
- HTTP协议(一):介绍
- HTTP协议初探
- lighttpd-1.4.39 : state machine
- HTTP协议 处理流程
- Volley之https相关
- 计算机网络11--OSI参考模型
- web开发快餐式入门指南 1.1 http
- VMware10下安装CentOS 6.5+基本网络配置
- HTTP协议详解
- iOS下的实际网络连接状态检测
- HTTP 方法:GET 对比 POST
- HTTP TCP/IP
- linux tcpdump的简单应用
- http请求的一些解释
- centos下网络配置方法(网关、dns、ip地址配置)
- Java的HttpURLConnection类post带参
- HTTP2 十分钟速知
- hosts+httpd-vhosts.conf,總結