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

Posted brucemengbm

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了httpd: Could not reliably determine the server's fully qualified domain name相关的知识,希望对你有一定的参考价值。

[[email protected] 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]



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


先检查下:



[[email protected] 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默认port80,但不推荐



以上是关于httpd: Could not reliably determine the server's fully qualified domain name的主要内容,如果未能解决你的问题,请参考以下文章

解决apache启动错误"httpd:Could not reliably determine..."

部署OpenStack问题汇总--解决apache启动错误"httpd:Could not reliably determine..."

Centos6 下启动httpd报错 Could not reliably determine the server's解决方法

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

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

解决报错httpd: Could not reliably determine the server‘s fully qualified domain name