nginx 未知指令 health_check

nginx unknown directive health_check

我是 nginx 新手。我正在使用 -

health_check uri=/some/uri

但在 运行 上使用此命令进行测试 -

 sudo /usr/sbin/nginx -t -c /etc/nginx/nginx.conf

我收到以下错误 -

nginx: [emerg] unknown directive "health_check" in /etc/nginx/sites-enabled/abc.conf:121

谁能告诉我这里出了什么问题..?我用apache2做了所有的jing-bang但是我对nginx的了解不多..

根据 Nginx docs :

This directive is available as part of nginx commercial subscription.