首页 > 其他 > 详细

httpd: Could not reliably determine the server's fully qualified domain name

时间:2014-07-16 11:14:53      阅读:394      评论:0      收藏:0      [点我收藏+]
[root@luozhonghua sbin]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for luozhonghua
httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

                                                           [FAILED]



遇到这个情况,说明80端口被占用,也就是你系统已有了80端口暂用,怎么办了


先检查下:



[root@luozhonghua sbin]# netstat -lnp|grep 80
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN                  5619/nginx
unix  2      [ ACC ]     STREAM     LISTENING     12380  1759/abrtd          /var/run/ab            rt/abrt.socket
unix  2      [ ACC ]     STREAM     LISTENING     16831  2143/nautilus       /tmp/orbit-            root/linc-85f-0-3e753e8283a80


方法是,关闭被占用的程序,一般来说,也就是另一个容器而已

比如我机器上就有nginx占用,那么 ./usr/local/nginx/nginx -s stop

然后再起  service httpd start

即可

当然另一种办法就是修改httpd默认端口80,但不推荐



httpd: Could not reliably determine the server's fully qualified domain name,布布扣,bubuko.com

httpd: Could not reliably determine the server's fully qualified domain name

原文:http://blog.csdn.net/luozhonghua2014/article/details/37841811

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