Httpd: cocould not reliably determine the server's fully qualified domain name

Source: Internet
Author: User
Tags fully qualified domain name
[[Email protected] sbin] # service httpd start
Starting httpd: apr_sockaddr_info_get () failed for luozhonghua
Httpd: cocould not reliably determine the server's fully qualified domain name, using 127.0.0.1 for servername
(98) address already in use: make_sock: cocould not bind to address [:]: 80
(98) address already in use: make_sock: cocould not bind to address 0.0.0.0: 80
No listening sockets available, shutting down
Unable to open logs

[Failed]



In this case, port 80 is occupied, that is, your system has a temporary port 80. What should I do?


First check:



[[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


The method is to close the occupied program, which is generally another container.

For example, if nginx is occupied on my machine,./usr/local/nginx-s stop

Then start service httpd start

You can.

Of course, another method is to modify the default httpd port 80, but it is not recommended



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.