Httpd:could not reliably determine the server& #39; s fully qualified domain name

Source: Internet
Author: User
Tags 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 don't bind to address 0.0.0.0:80
No listening sockets available, shutting down
Unable to open logs

[FAILED]



Encountered this situation. Description 80port is occupied. That is, your system already has 80port take-up. What happened?


First check the following:



[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-3e753e 8283a80


The method is to close the occupied program, in general, that is, there is a container.

For example, I have nginx occupied on my machine. So./usr/local/nginx/nginx-s Stop

And then service httpd start

'll be

Of course, there is a way to change the httpd default port80, but it is not recommended



Httpd:could not reliably determine the server& #39; s fully qualified domain name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.