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