1、首先要安装openresty,这个lor框架是基于openresty.从它官网下载最新openresty。

3、旧的openresty版本记得要带参数--with-luajit安装,./configure --with-lua枣娣空郅jit && make && make install ,如图,默认会安装好luajit和nginx

5、使用命令git clone https://github.com/sumory/lor.git下载lor。

7、熟悉openresty的知道。原来lor调用了openresty的resty命令。那么简单了,做个软链接ln -s /usr/local/openresty/bin/resty /usr/local/bin/,或者设置变量。另外还要调用openresty的nginx命令。同样做法。