In linux, Server Load balancer is required to build a solr cluster for the solr cluster using nginx, but in the test environment, no F5 Big-IP Server Load balancer switch can use www.2cto.com, so I tried weblogic proxyserver, and Apache, the results are very poor. After the two servers are configured with Server Load balancer, the concurrent response speed is not as fast as the one without Server Load balancer. Finally, nginx is used, and the effect is very good, the following describes the installation steps in linux 1 installation preparation nginx Software Version: nginx 1.2.5 installation package: rhel_nginx-1.2.5-1.el5.ngx.x86_64.rpm operating system: redhat 5 64-bit 2 installation configuration 2.1 install nginx use command [plain] rpm-I rhel_nginx-1.2.5-1.el5.ngx.x86_64.rpm installation default installation location:/usr/sbin/Master configuration file location:/etc/n Gstrap/nginx. other configuration files of conf are located at:/etc/nginx/conf. in Directory d, configure nginx 2.2.1 and enter [plain] vi/etc/nginx/conf in Port 2.2. d/default. open the configuration file conf, find the server segment, modify listen 80 to the required port 2.2.2 configure server Load balancer input [plain] vi/etc/nginx/conf. d/default. open the configuration file in conf and enter [plain] upstream <span style = "background-color: rgb (255,255, 0);"> nginxproxy </span> {server 192.168.1.100: 7022 max_fails = 3 fail_timeout = 5 h; server 172.23.1.101: 7022 max_fails = 3 Fail_timeout = 5 h;} proxy_connect_timeout 1; Limit 300; proxy_read_timeout 300; the server segment in upstream bslgis is the server ip address and port for load balancing. If the connection exceeds the time set by proxy_connect_timeout, if the number of times specified by max_fails is exceeded, the server is deemed to be down and will no longer be accessed during the period specified by fail_timeout. Locate the location Segment configuration in the "server {}" section and enter proxy_pass http: // nginxproxy. The final location segment is as follows: [html] location/{root/usr/share/nginx/html; index index.html index.htm; proxy_pass http: // nginxproxy;} complete configuration file: 2.3 start nginx startup command: if you cannot find the nginx command, enter the complete path:/usr/sbin/nginx stop command: nginx-s stop restart: nginx-s reload: smoothly change the nginx configuration file (do not restart nginx) and check whether the configuration file is correct: nginx-t uses [plain] ps-ef | grep "nginx: master "| grep-v" grep "output: root 3 735 1 008:48? 00:00:00 nginx: masterprocess nginx find the ID of the nginx main process, 3735 use the command kill-HUP 3735, you can update nginx configuration view nginx installation location, [plain] rpm-qpl nginx-1.2.5-1.el5.ngx.i386.rpm