nginx报错module 'resty.core' not found
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 /opt/nginx/etc/nginx.conf:117 解决方法,这个路径/usr/local/share/lua/5.1/resty/解压放这两个包,即可 lua-resty-core-0.1.22.tar.gz lua-resty-lrucache-0.10.tar.gz
lua-nginx-module-0.10.15自从这个版本后就开始报错了
类似问题
https://github.com/openresty/lua-nginx-module/issues/1720
https://github.com/openresty/lua-nginx-module/issues/1884
https://github.com/openresty/lua-nginx-module/issues/1509
https://www.cnblogs.com/woaiyunwei/p/15162913.html
请登录之后再进行评论