A Gateway based on OpenResty(Nginx + Lua) for API Monitoring and Management.
We recommend that you use luarocks to install Orange to reduce problems caused by dependency extensions in different operating system releases.
System dependencies (openresty, resty-cli, luarocks, etc.) necessary to install Orange on different operating systems, See: Install Dependencies Document.
Check the official documentation for Lor Framework or execute the following command.
git clone https://github.com/sumory/lor.git
cd lor
sudo make installcurl -Lo install.sh https://raw.githubusercontent.com/orlabs/orange/master/install/install-orange.sh
sudo sh install.shAfter the installation process is completed, the output message orange 0.8-1 is now installed in /usr/local/orange/deps (license: MIT) indicates that the installation was successful.
Requirements: MySQL Version 5.5+
-
Login to the
MySQLclient, create anorangedatabase. -
Import the data table (
/usr/local/orange/conf/orange-v0.8.1.sql). -
Modify the
Orangeconfiguration file (/usr/local/orange/conf/orange.conf)MySQLrelated configuration.
sudo orange startAfter the Orange launches successfully, the dashboard and API Server are started:
- Access
Dashboardviahttp://localhost:9999. - Access
API Serverviahttp://localhost:7777.
At this point, Orange has all been installed and configured, please enjoy it.
Please use the Install Dependencies and Install Lor Framework methods in Install of Production Environment to install.
git clone https://github.com/orlabs/orange.git
cd orange
sodu make devAfter the installation process is completed, the output message Stopping after installing dependencies for orange-master 1.0-0 indicates that the installation was successful.
Please use the Import MySQL methods in Install of Production Environment to import.
Note: Install Orange in Development Environment.
-
The
MySQL Data Tablefile and theOrange Configfile are located in theconffolder of the current project. -
Import the data table (
/usr/local/orange/conf/orange-master.sql).
sudo ./bin/orange startAccess method after the successful startup of Orange, please refer to: Start Orange in Install of Production Environment.
orange help to check usages:
Usage: orange COMMAND [OPTIONS]
The commands are:
start Start the Orange Gateway
stop Stop current Orange
reload Reload the config of Orange
restart Restart Orange
store Init/Update/Backup Orange store
version Show the version of Orange
help Show help tipsFind more about Orange on its website. There is only a Chinese version for now.
https://store.docker.com/community/images/syhily/orange maintained by @syhily
- @syhily
- @lhmwzy
- @spacewander
- @noname007
- @itchenyi
- @Near-Zhang
- @khlipeng
- @wujunze
- @shuaijinchao
- @EasonFeng5870
- @zhjwpku
The plugin architecture is highly inspired by Kong.