Solution: BalancerMember Can't find 'byrequests' lb method

Source: Internet
Author: User

Configure apache integration tomcat on another server of the company today. Because apache is compiled and installed, many modules are not opened. During integration, the following error is reported.

The solution is as follows:
1. Check whether there is a proxy module in httpd. conf. If not, compile and add it by yourself.
Go to the proxy directory in the modules directory under the apache source code directory.

The code is as follows: Copy code
Cd/root/install/httpd-2.2.22/modules/proxy/

This is my Directory. You can tidy up the source code directory and enter the proxy directory to execute the following two commands:

The code is as follows: Copy code

/Usr/local/apache/bin/apxs-c-I-a mod_proxy_ajp.c ajp *. c mod_proxy_balancer.c mod_proxy_connect.c mod_proxy.c mod_proxy_http.c proxy_util.c
/Usr/local/apache/bin/apxs-c-I-a mod_proxy_connect.lo mod_proxy_balancer.lo mod_proxy_ajp.lo mod_proxy.lo proxy_util.lo

Note:

-C: execute the compilation operation.
-I. Install one or more dynamic shared objects to the modules Directory of the server.
-A automatically adds a LoadModule path httpd. conf file to activate this module. If this line exists, it is enabled.
-A is similar to-a, but the added LoadModule row has A prefix (#)
-E needs to be edited. It can be used with the-a and-A Options. Similar to the-I operation, the httpd. conf file is modified, but this module is not installed.

2. Restart apache
If no error is reported, it indicates that the above error has been resolved. If the problem persists:

The code is as follows: Copy code
AH00526: syntaxes error on line 574 of/usr/local/apache/conf/httpd. conf:
BalancerMember Can't find 'byrequests' lb method

Make sure that the following two options are available in httpd. conf:

The code is as follows: Copy code
LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so

Then restart apache.

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.