CentOS6.4 use Apache and centos6.4apache
Each person installed CentOS is not exactly the same. For example, I installed it all. Naturally, Apache and http are both installed. How do I know if I have installed CentOS?
Run the command rpm.
# Rpm-qa | grep apache
If the Apache information is displayed, the installation is complete.
# Rmp-qa | grep http
For http Services
Check whether the httpd service has been started
# Service httpd status
If disabled, use
# Service httpd start
Start the httpd service
In this case, open firefox and enter localhost on the url.
When the page "This is page used to..." is displayed, it indicates OK. Enter the IP address of the system in another machine.
If the page crashes, please try to turn off the Firewall
# Service iptables stop
If you do not want to disable the Firewall
Write in/etc/sysconfig
-A input-m state -- state NEW-m tcp-p tcp -- drop 80-j ACCEPT
Restart Server Firewall
# Service iptables restart
Here, Apache can be used on CentOS.