Httpd service for troubleshooting
1. View service status
#systemctl status httpd
(1) Configuration file error
Syntax error on line 364 of /etc/httpd/conf/httpd.conf:
Invalid command 'adModule', perhaps misspelled or defined by a module not included in the server configuration
Open the configuration file and correct the syntax errors.
Start httpd service
#service httpd start
The problem has been fixed.
(2) Port number occupied or modified
Check whether the port number is occupied
#netstat -antlp | grep 80
Offer two options, kill the hogging process or change the port number for httpd. I will not repeat it here.
(3) Firewall blocking is recommended to directly close the firewall #service iptables stop
or open ports.
#firewall-cmd --add-service=http