如题,现在我服务器已通过lnmp2.0 安装了标准版的nginx,版本为1.24.0\
现在需要安装lua模块
在网上找的教程最后都显示已经安装了lua模块,但是测试发现nginx报错
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/local/nginx/conf/nginx.conf:113
2025/04/15 08:57:53 [emerg] 957#0: unknown directive "lua_package_path" in /usr/local/nginx/conf/nginx.conf:63
2025/04/15 08:58:38 [emerg] 957#0: unknown directive "lua_package_path" in /usr/local/nginx/conf/nginx.conf:63
求助
你不如直接用openresty,别折腾自己编译了