Aliyun a simple way to install Apache under a Linux server _linux

Source: Internet
Author: User
Tags aliyun

With the Aliyun host of the fiery launch, a lot of webmaster friends, also began to use the Aliyun server.
PHP programs, mostly still run on the Linux system's host.

Today, the introduction of Apache on Aliyun Linux hosts.

Cloud server operating system: CentOS 6.2 64-bit

Client operating Environment: MAC OS X teminal

Operation Steps:

1. Run Terminal, enter command:

Copy Code code as follows:

SSH Username@ip, and then enter the password.

2. Install the Apache software:

Copy Code code as follows:

Yum Install httpd

3. Set Apache to run when the server starts:

Copy Code code as follows:

Chkconfig--levels 235 httpd on

4. Configure the domain name in the Apache configuration file:

Copy Code code as follows:

vi/etc/httpd/conf/httpd.conf, find ServerName, add "domain name: 80", Save and exit.

5. Restart Apache:

Copy Code code as follows:

Service httpd Restart

6. In the browser, access the domain name of the 4th step configuration, if the "Apache 2 Test page powered by CentOS" page, the configuration is successful.

Simple, however, the above only to achieve the Apache service installation, the specific configuration, we have to do the operation ha.

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.