首页 > Web开发 > 详细

httpd启动报错httpd: Could not reliably determine the server's fully qualified domain name

时间:2017-02-09 16:32:52      阅读:270      评论:0      收藏:0      [点我收藏+]

安装完apache-httpd后,启动时报错如下:

 

[root@ppt app]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for ppt
httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName  [  OK  ]


解决如下:

1.编辑httpd配置文件,

vim /etc/httpd/conf/httpd.conf

添加:ServerName localhost:80


2.重启httpd服务

[root@ppt app]# service httpd restart
Stopping httpd: [  OK  ]
Starting httpd: [  OK  ]



本文出自 “xiaobao” 博客,谢绝转载!

httpd启动报错httpd: Could not reliably determine the server's fully qualified domain name

原文:http://baoyc.blog.51cto.com/9092507/1896274

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!