正文
nginx的luajit安装luarocks并安装luafilesystem
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
nginx的luajit安装luarocks并安装luafilesystemby admin on -- :: in , 69次标题有点绕口。我尽量把关键词都贴进去。之前因为自己的nginx安装了ngx_lua模块,但是又需要引入但是安装luafilesystem又需要先安装luarocks,比较繁琐。这里就想记录一下安装过程。nginx安装ngx_lua模块可以参考:LNMP平滑升级nginx并安装ngx_lua模块教程下面进入正题下载:wget http://keplerproject.github.io/luarocks/releases/luarocks-2.2.2.tar.gz解压:
tar -zxvf luarocks-2.2..tar.gz进入目录:
cd luarocks-2.2.安装 luarocks./configure --with-lua="/usr/local" --lua-suffix="jit" --with-lua-include="/usr/local/include/luajit-2.0" 其中“/usr/local/include/luajit-2.0” 可以 find / -name lua.h 先找下路径make build
make install 安装 luafilesystemluarocks install luafilesystem