CentOS7 OpenResty安装LuaRocks帮助我们管理组件
1、下载
wget http://luarocks.org/releases/luarocks-2.0.13.tar.gz
2、解压并进入目录
tar -zxvf luarocks-2.0.13.tar.gz
cd luarocks-2.0.13
3、配置、编译、安装(默认安装的目录基本上差不多)
./configure --prefix=/usr/local/openresty/luajit --with-lua=/usr/local/openresty/luajit/ --lua-suffix=jit --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1
make
make install
4、将其添加到环境变量中去
echo 'export PATH=$PATH:/usr/local/openresty/luajit/bin' >> /etc/profile
source /etc/profile
5、使用luarocks添加模块
luarocks install luafilesystem
本文来自博客园,作者:HumorChen99,转载请注明原文链接:https://www.cnblogs.com/HumorChen/p/18039740