nginx-lua(安装)

孙光临
2023-12-01
1)install luajit

//也可以到此下载http://luajit.org/download.html

wget http://luajit.org/download/LuaJIT-2.0.0.tar.gz

tar zxf LuaJIT-2.0.0.tar.gz 
cd LuaJIT-2.0.0
make
make install

export LUAJIT_LIB=/usr/local/lib
export LUAJIT_INC=/usr/local/include/luajit-2.0

ln -sf /usr/local/lib/libluajit-5.1.so.2 /lib64/libluajit-5.1.so.2 


2)install nginx

//也可以到此下载https://github.com/openresty/lua-nginx-module/tags

wget https://github.com/simpl/ngx_devel_kit/archive/v0.2.17rc2.tar.gz
wg

 类似资料: