成功編譯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

谷歌針對上述錯誤的解決方案:

目前我的 nginx 版本是 1.20.2 。

問候,拉古

相關內容