给 tengine 加 waf 出错

2018-08-29 01:11:40 +08:00
 skyzan
用./nginx -t 检查配置时,提示一下信息
nginx: the configuration file /usr/local/src/tengine/conf/nginx.conf syntax is ok
nginx: [error] init_by_lua_file error: /usr/local/src/tengine/waf/init.lua:16: module 'cjson' not found:
no field package.preload['cjson']
no file '/usr/local/src/luajit/cjson.lua'
no file './cjson.so'
no file '/usr/lib64/lua/5.1/cjson.so'
no file '/usr/lib64/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/local/src/tengine/waf/init.lua:16: in main chunk
nginx: configuration file /usr/local/src/tengine/conf/nginx.conf test failed
已经把 lua-cjson 编译安装上了,怎么还回报错,不是太明白
1450 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/484115

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX