从旧版本升级后,nginx无法启动,删除/etc/nginx/module.d/luci.module后,出现错误如下:
2024/05/01 09:03:17 [alert] 20763#0: 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/share/luajit-2.1/resty/core.lua'
no file '/usr/share/lua/resty/core.lua'
no file '/usr/share/lua/resty/core/init.lua'
no file '/usr/share/lua/resty/core.lua'
no file '/usr/share/lua/resty/core/init.lua'
no file './resty/core.so'
no file '/usr/lib/lua/resty/core.so'
no file '/usr/lib/lua/resty/core.so'
no file '/usr/lib/lua/loadall.so'
no file './resty.so'
no file '/usr/lib/lua/resty.so'
no file '/usr/lib/lua/resty.so'
no file '/usr/lib/lua/loadall.so') in /etc/nginx/nginx.conf:55
/etc/nginx/nginx.conf的配置如下:
从旧版本升级后,nginx无法启动,删除/etc/nginx/module.d/luci.module后,出现错误如下: 2024/05/01 09:03:17 [alert] 20763#0: 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/share/luajit-2.1/resty/core.lua' no file '/usr/share/lua/resty/core.lua' no file '/usr/share/lua/resty/core/init.lua' no file '/usr/share/lua/resty/core.lua' no file '/usr/share/lua/resty/core/init.lua' no file './resty/core.so' no file '/usr/lib/lua/resty/core.so' no file '/usr/lib/lua/resty/core.so' no file '/usr/lib/lua/loadall.so' no file './resty.so' no file '/usr/lib/lua/resty.so' no file '/usr/lib/lua/resty.so' no file '/usr/lib/lua/loadall.so') in /etc/nginx/nginx.conf:55 /etc/nginx/nginx.conf的配置如下:
worker_processes auto;
user root;
include module.d/*.module;
events {}
http { access_log off; log_format openwrt '$request_method $scheme://$host$request_uri => $status' ' (${body_bytes_sent}B in ${request_time}s) <- $http_referer';
} 错误大概是从2周前的apk的变动引起的,请教如何解决?编译过程无报错,软件仓库中resty相关软件都安装了。