1、编译安装openresty
2、下载luarocks
wget https://luarocks.org/releases/luarocks-2.4.4.tar.gz
./configure --with-lua="/usr/local/openresty/luajit" --prefix="/usr/local/openresty/luarocks" --lua-suffix="jit" --with-lua-include="/usr/local/openresty/luajit/include/luajit-2.1" --force-config
make install && make
/usr/local/openresty/luarocks/bin/luarocks install lua-iconv
安装的库都在/usr/local/openresty/luarocks/lib/lua/5.1/下面
OpenResty与LuaRocks安装配置
本文介绍如何通过编译安装OpenResty,并详细展示了LuaRocks的配置过程及所需命令。此外,还提供了安装lua-iconv库的具体步骤。
6717

被折叠的 条评论
为什么被折叠?



