Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hamdon opened this issue Jun 15, 2019 · 2 comments
Open

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

hamdon opened this issue Jun 15, 2019 · 2 comments

Comments

@hamdon
Copy link

hamdon commented Jun 15, 2019

修改counter.conf里面的路径之后,重启nginx,报错了

lua_package_path "/mnt/work/nginx-lua-prometheus/?.lua;/mnt/work/lua-resty-consul/lib/resty/?.lua;/mnt/work/lua-nginx-prometheus/lib/?.lua;;";

报的错:
Jun 15 20:45:24 izuf6278r1bks33022y99pz nginx[32269]: no file '/usr/local/lib/lua/5.1/loadall.so'
Jun 15 20:45:24 izuf6278r1bks33022y99pz nginx[32269]: stack traceback:
Jun 15 20:45:24 izuf6278r1bks33022y99pz nginx[32269]: [C]: in function 'require'
Jun 15 20:45:24 izuf6278r1bks33022y99pz nginx[32269]: /mnt/work/lua-nginx-prometheus/lib/counter.lua:2: in main chunk
Jun 15 20:45:24 izuf6278r1bks33022y99pz nginx[32269]: [C]: in function 'require'
Jun 15 20:45:24 izuf6278r1bks33022y99pz nginx[32269]: init_by_lua:2: in main chunk
Jun 15 20:45:24 izuf6278r1bks33022y99pz systemd[1]: nginx.service: control process exited, code=exited status=1
Jun 15 20:45:24 izuf6278r1bks33022y99pz systemd[1]: Failed to start nginx.service.

@vovolie
Copy link
Owner

vovolie commented Jun 19, 2019

是用了openresty 么?

@hamdon
Copy link
Author

hamdon commented Oct 9, 2019

嗯,是的,现在好了。忘记怎么处理了。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants