1. 下载源码包
    1. wget http://luarocks.org/releases/luarocks-3.3.1.tar.gz
    1. 解压缩
    1. sudo tar -zxvf luarocks-3.3.1.tar.gz
    2. cd luarocks-3.3.1
    1. 编译安装
    1. sudo ./configure --lua-suffix=jit --with-lua=/usr/local/openresty/luajit/ --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1/ --prefix=/usr/local/openresty/luajit/
    2. sudo make build
    3. sudo make install