1.说明
- 以下全部操作均已
root
用户执行
2.安装
2.1 安装依赖
yum install readline-devel pcre-devel openssl-devel gcc
2.2 下载openresty安装包进行解压安装
yum install yum-utils
yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
yum install openresty
yum install openresty-resty
ln -s /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginx
ln -s /usr/local/openresty/bin/resty /usr/sbin/resty
nginx -v
resty -V
2.3 下载安装lor
git clone https://github.com/sumory/lor
cd lor
make install
注:如果git不能下载,可从https://github.com/sumory/orange/releases下载发布版
2.4 下载安装orange
git clone https://github.com/sumory/orange
cd orange
make install