tengine安装ngx_http_lua_module

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

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

先卸载原有luajit

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

问题:

[root@localhost sbin]# ./nginx -m 
./nginx: error while loading shared libraries: libluajit-***.so.2: cannot open shared object file: No such file or directory

使用一下命令解决:

echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig 

tips:

https://github.com/loveshell/ngx_lua_waf

 

转载于:https://www.cnblogs.com/MakeInstall/p/10725937.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值