Lua モジュールのコンパイルが成功した後、Nginx サーバーを起動するときにエラーが発生する

Lua モジュールのコンパイルが成功した後、Nginx サーバーを起動するときにエラーが発生する

lua モジュールを使用して Nginx パッケージをコンパイルしました。コンパイルは成功しましたが、nginx サーバーの起動中に以下のエラーが発生します。

nginx: [warn] lua_load_resty_core is deprecated (the lua-resty-core library is required since ngx_lua v0.10.16) in /app/middleware/nginx/conf/nginx.conf:24
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled 
and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, 
consider using the OpenResty releases from https://openresty.org/en/download.html)
nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); 
ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: /app/middleware/lua-resty-core/lib/lua/resty/core.lua:6: 
loop or previous error loading module 'resty.core.var') in /app/middleware/nginx/conf/nginx.conf:704

上記のエラーに対する Google からの解決策:

現在、私の nginx バージョンは 1.20.2 です。応答本文を nginx access.log に記録する必要があるため、ご協力をお願いします。

よろしく、ラグー

関連情報