Home > Database > Mysql Tutorial > nginx实现mysql的负载均衡_MySQL

nginx实现mysql的负载均衡_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:41:03
Original
911 people have browsed it

Nginx

bitsCN.com
nginx属于七层架构,支持的是http协议,本身对tcp协议没有支持。所以不能代理mysql等实现负载均衡。但是lvs这个东西不熟悉,主要是公司的的负载均衡都是nginx所以决定研究一下nginx的这个功能实现,下面简单介绍一下实现方法:   1.下载module模块下载地址 : http:///uploadfile/2012/0908/20120908102658486.zip       
$ wget 'http://nginx.org/download/nginx-1.2.1.tar.gz'         $ tar -xzvf nginx-1.2.1.tar.gz        $ cd nginx-1.2.1/        $ patch -p1
Related labels:
yes
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