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:
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:
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.