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에 응답 본문을 기록해야 하므로 도움을 주시기 바랍니다.
감사합니다, 라구