Load Balancing and cluster configuration using Apache + Tomcat

Source: Internet
Author: User

There are manyArticleSpecifically, I have built a single-host cluster on Linux by referring to mod_proxy + Apache + Tomcat server Load balancer and cluster configuration.

Here, I will only list the problems encountered.

According to the reference documents, Tomcat clusters are easy to build. An error occurred while installing Apache. Because the proxy module is not installed by default during Apache installation, I cannot use the Server Load balancer function during the first installation.

Record the Apache installation process here:

1. configuration is required because Apache is installed in the form of source code.

. /Configure -- prefix =/usr/local/apache2/-- enable-so -- enable-proxy-connect = shared -- enable-proxy-FTP = shared -- enable -proxy-HTTP = shared -- enable-proxy-AJP = shared -- enable-proxy-balancer = shared

The preceding command can also compile the modules involved in Server Load balancer. After compilation and installation, if the corresponding *. So file is displayed in the/usr/local/apache2/modules/directory, the installation is successful.

2. Make clean

3. Make

4. Make install

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.