云上的天涯

导航

tengine-2.3.1 增加ngx_http_upstream_check_module 模块

该模块在Tengine-1.4.0版本以前没有默认开启,它可以在配置编译选项的时候开启:./configure --with-http_upstream_check_module

但是在1.4.0之后编译时默认开启的,但是在2.3.1版本时候默认取消了,需要以增加模块方式编译进去

./configure --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --prefix=/usr/local/nginx --with-jemalloc --with-stream --add-module=./modules/ngx_http_upstream_check_module/

然后make && make install即可

如果不用添加模块方式也就是--add方式,在upstream里配置后端server健康检查时候会提示语法错误,也就是check 错误。

特此记录一下。

posted on 2019-08-26 17:52  云上的天涯  阅读(1544)  评论(0编辑  收藏  举报