Openresty 集成 Luarocks

从官方网站下载最新版 luarocks

编译 luarocks:

./configure --prefix=/usr/local/openresty/luajit \
--with-lua=/usr/local/openresty/luajit/ \
--with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1

验证:

/usr/local/openresty/luajit/bin/luarocks --version

查看已安装的包:

/usr/local/openresty/luajit/bin/luarocks list