openresty / openresty/lua-nginx-module
nginx: [error] failed to initialize Lua VM in /usr/local/nginx/conf/nginx.conf
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
nginx/1.12.2
mac 12.5.1
luajit 2.0.5
已安装了模块:ngx_devel_kit-0.3.0、lua-nginx-module-0.10.13
我在.bash_profile以及.zshrc加入了luajit的环境变量,如下:
export LUAJIT_LIB=/usr/local/luajit/lib
106 export LUAJIT_INC=/usr/local/luajit/include/luajit-2.0
启动nginx ,出现了nginx: [error] failed to initialize Lua VM in /usr/local/nginx/conf/nginx.conf
请问怎么解决?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with /usr/local/nginx/conf/nginx.conf and verify how nginx was built and how it loads LuaJIT, using the reported LUAJIT_LIB and LUAJIT_INC values from .bash_profile and .zshrc. Reproduce the startup failure and identify the missing or incompatible Lua VM initialization requirement; done means nginx starts without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100