skyzan
V2EX  ›  问与答

给 tengine 加 waf 出错

  •  
  •   skyzan · Aug 29, 2018 via Android · 2107 views
    This topic created in 2820 days ago, the information mentioned may be changed or developed.
    用./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 编译安装上了,怎么还回报错,不是太明白
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3616 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 05:05 · PVG 13:05 · LAX 22:05 · JFK 01:05
    ♥ Do have faith in what you're doing.