CentOS6.4 use Apache and centos6.4apache

Source: Internet
Author: User

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.

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.