文章目录 方式一方式二 方式一 利用 nginx 自带模块 ngx_http_proxy_module, ngx_http_upstream_module 对后端节点做 健康检查。 方式二 利用 nginx_upstream_check_module 模块对后端节点做健康检查。(推荐此方法)