該模塊在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 錯誤。
特此記錄一下。