首页 > Web开发 > 详细

tengine安装ngx_http_lua_module

时间:2019-04-17 20:42:02      阅读:1293      评论:0      收藏:0      [点我收藏+]

从http://luajit.org/download.html下载的luagit来安装tengine上,启动时报错如下

nginx: [alert] detected a LuaJIT version which is not OpenRestys; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenRestys LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)

先卸载原有luagit

make uninstall

然后从https://github.com/openresty/luajit2下载

git clone https://github.com/openresty/luajit2
make
&& make install

tengine2.0.3下

./configure --with-http_lua_module --with-luajit-lib=/usr/local/lib/ --with-luajit-inc=/usr/local/include/luajit-2.1/ --with-lua-inc=/usr/local/include/luajit-2.1/ --with-lua-lib=/usr/local/lib/
make && make install

tips:

https://github.com/loveshell/ngx_lua_waf

 

tengine安装ngx_http_lua_module

原文:https://www.cnblogs.com/MakeInstall/p/10725937.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!