你好,下面是我的nginx及各模块版本:
nginx-1.24.0.tar.gz
zlib-1.2.13.tar.gz
pcre-8.42.tar.gz
luajit2.tar.gz
openssl-1.1.1u.tar.gz
headers-more-nginx-module-0.34.tar.gz
echo-nginx-module-0.63.tar.gz
ngx_devel_kit-0.3.2.tar.gz
set-misc-nginx-module-0.33.tar.gz
lua-nginx-module-0.10.25.tar.gz
可以正常编译安装,完成后nginx -t也能通过,但是启动时报错:
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: module 'resty.core' not found:
no field package.preload['resty.core']
no file './resty/core.lua'
no file '/usr/local/share/luajit-2.1.0-beta3/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core/init.lua'
no file './resty/core.so'
no file '/usr/local/lib/lua/5.1/resty/core.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so') in /usr/loacal/nginx/conf/nginx.conf:115
请问是什么问题,该如何处理呢?