vovolie/lua-nginx-prometheus

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

hamdon opened this issue · 2 comments

修改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.

是用了openresty 么?

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