This article briefly describes Apache's idiot-level problems
1 Relationship between APACHE and httpd
According to the Internet, it is complicated. However, I prefer to believe that httpd is a single Apache process about the HTTP service. It means that httpd belongs to Apache, and Apache contains not only httpd.
2 chkconfig -- levels 235 httpd on
Httpd is started randomly when the running level is 2, 3, and 5.
(A little question about chkconfig: The Association caused by chkconfig-how to check whether the program has been installed/successfully installed)
3 manually start httpd
/Usr/sbin/httpd
/Etc/init. d/httpd start
Service httpd start
All three methods are supported.
4.KeyProblem --Firewall
Sometimes Apache is successfully started, but the client browser still cannot access it. It is best to turn off the firewall first. This is a simple but critical issue that many people have not said on the Internet. It is not done until you have consulted a master.
Service iptables stop
This command should be the same as/etc/init. d/iptables stop.
Or
VI/etc/sysconfig/iptables
Add the following line to allow the firewall to release port 80
-A RH-Firewall-1-INPUT-p tcp-M state -- state new-m tcp -- dport 80-J accept
Service iptables restart Firewall
Finally, access is successful.