一、 安装lor
# git clone https://github.com/sumory/lor.git
# cd lor
# make install
二、 导入orange的数据库
orange项目install文件下有orange的数据库sql文件,选择最新版本导入到本地mysql
git clone https://github.com/sumory/orange.git
导入数据库
create databases orange;
use orange;
source /home/myopenresty/orange/install/orange-v0.7.0.sql;
三、 安装第三方依赖
1 luarocks安装luafilesystem和luasocket
yum install luarocks
luarocks install luafilesystem
luarocks install luasocket
执行luarocks list展示如下信息,则是已经安装成功:
luafilesystem
1.7.0-2 (installed) - /usr/local/luarocks/lib/luarocks/rocks
luarocks
2.2.2-1 (installed) - /usr/local/luarocks/lib/luarocks/rocks
2 opm安装其他的包
cd orange
make install
opm --install-dir=./ get zhangbao0325/orangelib
安装完成之后,orange目录下会出现lualib文件夹,里面是orange所依赖的所有第三方包
四、 修