关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

reason: module 'resty.core' not found:

发布时间:2020-04-15 23:59:51

[root@OJgcWQ154811 conf]# service openresty restart 

Stopping nginx:                                            [  OK  ]

Starting nginx: nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found:

no field package.preload['resty.core']

no file '/usr/local/openresty/nginx/conf/waf/resty/core.lua'

no file '/usr/local/openresty/site/lualib/resty/core.so'

no file '/usr/local/openresty/lualib/resty/core.so'

no file './resty/core.so'

no file '/usr/local/lib/lua/5.1/resty/core.so'

no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/core.so'

no file '/usr/local/lib/lua/5.1/loadall.so'

no file '/usr/local/openresty/site/lualib/resty.so'

no file '/usr/local/openresty/lualib/resty.so'

no file './resty.so'

no file '/usr/local/lib/lua/5.1/resty.so'

no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so'

no file '/usr/local/lib/lua/5.1/loadall.so')

                                                           [  OK  ]


[root]# ln -s /usr/local/openresty/lualib /usr/local/lib/lua

[root]# ln -s /usr/local/openresty/lualib/resty  /usr/local/openresty/nginx/conf/waf/resty



/template/Home/Zkeys/PC/Static