Home > Backend Development > PHP Tutorial > Load balancing - detailed explanation of nginx cluster configuration nginx load What does load balancing mean What is the origin of load balancing

Load balancing - detailed explanation of nginx cluster configuration nginx load What does load balancing mean What is the origin of load balancing

WBOY
Release: 2016-07-29 08:55:03
Original
1477 people have browsed it

Detailed explanation of the steps to configure nginx cluster under tomcat project:

1. Copy the nginx-1.6.0 folder to the specified directory, example D:nginxnginx-1.6.0.

2. Modify E:apache-tomcat-6.0.36confserver.xml, add the label under the label of the source annotation, and modify the address attribute value of the label to The local IP address and other cluster tomcat configurations are different port numbers.

nginx负载均衡配置,nginx负载均衡原理,两台nginx负载均衡,nginx做负载均衡,nginx负载均衡算法,nginx负载均衡视频,nginx tcp负载均衡,nginx负载均衡策略,nginx实现负载均衡,nginx负载均衡优化,nginx负载均衡日志,nginx负载均衡模式,nginx 负载,负载均衡是什么意思,负载均衡什么原

3. Modify E:apache-tomcat-6.0.36webappscommonAppWEB-INFweb.xml and add before

nginx负载均衡配置,nginx负载均衡原理,两台nginx负载均衡,nginx做负载均衡,nginx负载均衡算法,nginx负载均衡视频,nginx tcp负载均衡,nginx负载均衡策略,nginx实现负载均衡,nginx负载均衡优化,nginx负载均衡日志,nginx负载均衡模式,nginx 负载,负载均衡是什么意思,负载均衡什么原

4. Configure nginx.conf

4.1 Configure the IP and port number of the service that needs to build a cluster

nginx负载均衡配置,nginx负载均衡原理,两台nginx负载均衡,nginx做负载均衡,nginx负载均衡算法,nginx负载均衡视频,nginx tcp负载均衡,nginx负载均衡策略,nginx实现负载均衡,nginx负载均衡优化,nginx负载均衡日志,nginx负载均衡模式,nginx 负载,负载均衡是什么意思,负载均衡什么原

4.2 Copy the project pages and resources folder to D:nginxnginx-1.6.0htmlcommonApp,

as a cache file, which can be customized and modified Cache file category.

nginx负载均衡配置,nginx负载均衡原理,两台nginx负载均衡,nginx做负载均衡,nginx负载均衡算法,nginx负载均衡视频,nginx tcp负载均衡,nginx负载均衡策略,nginx实现负载均衡,nginx负载均衡优化,nginx负载均衡日志,nginx负载均衡模式,nginx 负载,负载均衡是什么意思,负载均衡什么原

4.3 Modify the IP and port number of nginx for external access

nginx负载均衡配置,nginx负载均衡原理,两台nginx负载均衡,nginx做负载均衡,nginx负载均衡算法,nginx负载均衡视频,nginx tcp负载均衡,nginx负载均衡策略,nginx实现负载均衡,nginx负载均衡优化,nginx负载均衡日志,nginx负载均衡模式,nginx 负载,负载均衡是什么意思,负载均衡什么原

nginx负载均衡配置,nginx负载均衡原理,两台nginx负载均衡,nginx做负载均衡,nginx负载均衡算法,nginx负载均衡视频,nginx tcp负载均衡,nginx负载均衡策略,nginx实现负载均衡,nginx负载均衡优化,nginx负载均衡日志,nginx负载均衡模式,nginx 负载,负载均衡是什么意思,负载均衡什么原

5.cmd locate the nginx directory and enter startnginx to start the service.

6. Turn off the timer function of other services and ensure that one service is started


The above introduces the detailed explanation of load balancing-nginx cluster configuration, including nginx and load balancing. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template