windows 下使用nginx对mysql进行负载均衡
1.自从nginx版本1.9之后,nginx 便增加了对tcp与udp协议的支持
官方文档
The ngx_stream_core_module module is available since version 1.9.0. This module is not built by default, it should be enabled with the –with-stream configuration parameter.
2.但是在linux下默认不安装这个模块,需要在编译时通过指定 –with-stream 参数来激活这个模块。
在windows下
1.我希望在window下做mysql的均衡
2.于是使用命令查看nginx已安装的模块
E:\nginx-1.12.1>nginx -V
#版本信息
nginx version: nginx/1.12.1
built by cl 16.00.40219.01 for 80x86
built with OpenSSL 1.0.2l 25 May 2017
TLS SNI support enabled
#安装的模块
configure arguments: --with-cc=cl --builddir=objs.msvc8