Orange 架构
一)orange介绍
安装依赖
1)OpenResty: 版本应在1.9.7.3+
需要编译OpenResty时添加--with-http_stub_status_module
2)lor框架
git clone https://github.com/sumory/lor
cd lor
make install3)MySQL
数据库名:orange
安装mysql数据库
执行相应的版本的数据库脚本
https://github.com/sumory/orange/tree/master/install
二)安装orange
git clone https://github.com/sumory/orange.git使用的是v0.5.0及以上的版本, 可以通过make install将Orange安装到系统中。
执行此命令后, 以下两部分将被安装:
注意: 报错
/usr/bin/env: ‘resty’: No such file or directory在/usr/bin/目录下创建resty的软链接
执行orange help
根据以上两种方式选择使用sh start.sh或orange start来启动Orange。 Orange启动成功后, Dashboard和API server也随之启动:
内置的Dashboard可通过http://localhost:9999访问

sh: 1: nginx: not found
sudo ln -s /usr/local/openresty/nginx/sbin/nginx /usr/sbin/
资料
Last updated
Was this helpful?