opmexample

opm 示例包,也是最简单的 opm 包

$ opm get zhangbao0325/opmexample

Orange

[!GitHub 发布](https://github.com/sumory/orange/releases/latest) [!许可证](https://github.com/sumory/orange/blob/master/LICENSE)

<a href="./README_zh.md" style="font-size:13px">中文</a> | <a href="./README.md" style="font-size:13px">English</a> | <a href="http://orange.sumory.com" style="font-size:13px">网站</a>

一个基于 OpenResty(Nginx+lua) 的 API 监控和管理网关。

安装与使用

需求

  • MySQL v5.5+

  • OpenResty v1.9.7.3+ 或 Nginx+lua 模块

    • 使用 --with-http_stub_status_module 选项安装 OpenResty

  • Lor 框架 请注意

    • Orange v0.6.1 及 v0.6.1 之前的版本兼容 lor v0.2.*

    • Orange v0.6.2+ 兼容 lor v0.3.0+

将适配您 Orange 版本的 SQL 文件(例如 install/orange-v0.7.0.sql)导入到名为 orange 的 MySQL 数据库中。

安装

1) 依赖项

    # cd orange          // Go to the Orange directory
    # make dependencies  // Installation dependent extension

2) 脚本管理

使用 shell 脚本(例如 start.sh)来管理 Orange。

3) CLI 工具

除了 start.sh 脚本之外,还可以使用新的 cli 工具来管理 Orange。 您应该先安装 cli

    # cd orange     // Go to the Orange directory
    # make install  // Installation CLI tools

然后,Orange 运行时 lua 模块安装在 /usr/local/orange 中,并生成一个名为 /usr/local/bin/orange 的可执行命令。

使用

在启动 Orange 之前,您应该确保 orange.confnginx.conf 已重新定义以满足您的项目需求。

1) 脚本管理

只需 sh start.sh 即可启动 Orange。您可以根据需要重写其他 shell 脚本。

2) CLI 工具

orange help 查看用法

    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 tips

文档

在它的 网站 上了解更多关于 Orange 的信息。 目前只有中文版本。

Docker

https://store.docker.com/community/images/syhily/orange@syhily 维护

贡献者

另请参阅

插件架构深受 Kong 的启发。

许可证

MIT

作者

zhangbao0325

许可证

mit

版本