CentOS6.4 using Apache

Source: Internet
Author: User


Everyone installs the CentOS is not exactly the same, such as I am all installed, natural Apache and HTTP are installed, then how to know if it has been installed?

Use the command rpm to find out.

#rpm-qa | grep Apache

If you come up with information about Apache, the instructions are installed.

#rmp-qa | grep http

For HTTP Services


See if the HTTPD service is started

#service httpd Status

If it is disabled, use the

#service httpd Start

Start the httpd service


At this point, open Firefox and enter localhost on the URL

Out page "This is the page used to ..." Instructions OK, for another machine enter the IP of the system

If the page doesn't come out, try turning off the firewall

#service iptables Stop

If you don't want to turn off firewalls

is written in/etc/sysconfig

-A input-m state--state new-m tcp-p TCP--drop 80-j ACCEPT

Restarting the server firewall

#service iptables Restart


This shows that Apache can be used on CentOS.

CentOS6.4 using Apache

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.