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