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