CentOS 6.6 Under the Java EE Environment to build (iii) Apache installation

Source: Internet
Author: User

This section on the installation of Apache, maybe we all know only Tomcat, a few know Apache, in fact, Apache is also a server, is also a popular web server software one. The specific is not introduced, we go down to Google, the following officially began to explain the installation and configuration of Apache:

       

Download Apache:

http://download.csdn.net/detail/samile6899/9134161 (Download address)

Install Apache:

1, first use SSH to download the compressed packets to Linux;

2, copy it to the/usr/local folder and unzip the folder;

[Root@zurich wuwei]# cp java/httpd-2.2.21_3626.tar.gz  /usr/local
[Root@zurich wuwei]# cd/usr/local]
[ Root@zurich local]# tar-zxvf   httpd-2.2.21_3626.tar.gz  
[Root@zurich local]# mv httpd-2.2.21_3626 Apache


3, access to the Apache installation directory

CD Apache
4, install GCC (install Apache required)
Yum install gcc gcc-c++ autoconf automake
5, install the configuration (remember to go to the Apache directory)

./configure--prefix=/usr/local/apache--enable-module=so make make
install


Test installation is normal:

Start Apache:

/usr/local/apache/bin/apachectl start

Open port 80, open ports have been explained in the previous installment of Tomcat configuration to open 80 ports when installing Tomcat on the previous section;

Finally, in the browser, enter:

Http://IP Address

If "It works!" appears The description has been successfully installed.

The next section explains the configuration of Apache+tomcat load Balancing ...




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.