<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>指南 :: NJET文档</title>
    <link>https://docs.njet.org.cn/docs/v4.0.1/guide/index.html</link>
    <description>本部分包含：1. OpenNJet 介绍 2.Copilot 介绍 3. 动态配置框架 4.安装 5.基本使用 6.nginx迁移指南</description>
    <generator>Hugo</generator>
    <language>zh</language>
    <lastBuildDate>Wed, 13 Aug 2025 16:27:50 +0800</lastBuildDate>
    <atom:link href="https://docs.njet.org.cn/docs/v4.0.1/guide/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>OpenNJet介绍</title>
      <link>https://docs.njet.org.cn/docs/v4.0.1/guide/njet_introduction/index.html</link>
      <pubDate>Tue, 12 Aug 2025 15:37:01 +0800</pubDate>
      <guid>https://docs.njet.org.cn/docs/v4.0.1/guide/njet_introduction/index.html</guid>
      <description>应用引擎技术介绍 应用引擎是面向互联网和云原生应用提供的运行时组态服务程序。具备环境感知、安全控制、加速优化等能力，一般呈现为Web服务、流媒体服务、代理(Proxy)、应用中间件、API网关、消息队列等产品形态。&#xA;应用引擎在云原生架构中，除了提供南北向通信网关的功能以外，因为提供了服务网格中东西向通信、透明流量劫持、熔断、遥测与故障注入等新功能特性，其地位和作用在云原生架构中变得愈发重要。&#xA;OpenNJet最早是基于NGINX1.19基础，fork并独立演进的开源应用引擎，并随着NGINX版本迭代，吸收上游NGINX的更新，已经同步更新到NGINX1.27.4版本。OpenNJet的目标在于适应国内特定的技术规范及标准，如国密算法套件支持，并构建安全可控的云原生数据面，支撑我国云原生产业生态。作为底层引擎，OpenNJet利用动态加载机制可以实现不同的产品形态，如API网关、消息代理、出入向代理，负载均衡，WAF等等&#xA;系统架构介绍 相比市面其他类型的API网关，高性能是NGINX主要的优点，但动态配置能力的缺乏一直受到业界的诟病。OpenNJet在NGINX的架构上进行了扩充，对其框架进行了改写，增加了c及可持久化的动态存储能力，解决了指令配置变更动态生效的关键问题，扩展了OpenNJet的应用场景。此外，业界对应用引擎可观测性的需求，需要应用引擎持续不断的采集性能指标、日志数据以及注入跟踪信息，但这对应用引擎的性能造成了不可忽视的影响，OpenNJet利用copilots framwork隔离了业务处理及配置变更和指标采集，避免了遥测对性能的影响。作为云原生的应用引擎，OpenNJet需要支持业界流行的Ingress及sidecar的api规范，基于动态配置+ copilots framework架构，OpenNJet可以通过不断更新独立的相关copilots module，实现对响应标准规范的及时支持。</description>
    </item>
    <item>
      <title>Copilot介绍</title>
      <link>https://docs.njet.org.cn/docs/v4.0.1/guide/copilot_introduction/index.html</link>
      <pubDate>Wed, 13 Aug 2025 15:13:18 +0800</pubDate>
      <guid>https://docs.njet.org.cn/docs/v4.0.1/guide/copilot_introduction/index.html</guid>
      <description>NJet 中的 Copilot 是一套模块化辅助系统，通过独立进程协同工作，为 NJet 提供企业级高可用、动态配置管理、实时监控等能力。通过配置helper指令，实现装载不同的helper实现。从而实现不同的功能。目前的NJet的事件总线、控制平面集成接口都是通过其设置&#xA;配置说明：&#xA;copilot框架依赖helper指令:&#xA;指令说明：&#xA;Syntax helper tag so_file conf_file; Default — Context main 参数说明：&#xA;参数名称 是否必须 参数说明 tag 是 指定一个名字标签 so_file 是 so文件 conf_file 是 配置文件 ctrl（控制中枢） 动态配置管理 集群节点状态监控 服务启停控制 broker（消息代理） 进程间通信(IPC)枢纽 支持 MQTT/AMQP 等协议 请求/事件路由分发 ha（高可用模块） 主备节点心跳检测 自动故障切换(failover) 会话一致性同步 rsync（文件同步） slave节点同步master节点的文件 新节点上线或者感知到master变化，slave节点要主动向master节点进行一次全量同步 master节点启动inotify监控，感知到文件变化，将变化消息通过mqtt topic通知到slave节点 4.slave节点收到文件变化消息，发起向master节点的一次同步连接 goaccess（实时监控） 日志流式分析 生成实时流量仪表盘 异常行为告警 snmp（网管支持） 提供标准 SNMP 接口 使用各种机制（包括电子邮件、警报和陷阱）从远程位置配置和监控他们的网络</description>
    </item>
    <item>
      <title>动态配置框架</title>
      <link>https://docs.njet.org.cn/docs/v4.0.1/guide/dyn_config_framework/index.html</link>
      <pubDate>Wed, 13 Aug 2025 15:41:58 +0800</pubDate>
      <guid>https://docs.njet.org.cn/docs/v4.0.1/guide/dyn_config_framework/index.html</guid>
      <description>欢迎阅读 NJet 动态配置框架文档。本部分包含：1. kv 2. sendmessage&#xA;njet提供基于eventbus构建的消息总线，其包括copilot：broker，动态配置stub模块njet_http_kv,sendmsg模块 njet_http_sendmsg模块。&#xA;如上图所示意， NJet的动态配置一般由控制面发送配置消息，不同的worker通过加载动态配置stub，监听不同的消息，并回调不同的处理函数。</description>
    </item>
    <item>
      <title>安装</title>
      <link>https://docs.njet.org.cn/docs/v4.0.1/guide/install/index.html</link>
      <pubDate>Wed, 13 Aug 2025 16:27:50 +0800</pubDate>
      <guid>https://docs.njet.org.cn/docs/v4.0.1/guide/install/index.html</guid>
      <description>安装 NJET官方提供centos，ubuntu，cloudOS,麒麟,龙芯等多个版本的2进制安装包及软件源,但不支持Windows系统。其中支持的有：&#xA;OS 架构 当前版本 下载链接 Kylin Linux Advanced Server release V10(SP1) x86_64 4.0.1.0 https://gitee.com/njet-rd/njet/releases/download/v4.0.1.0/njet-4.0.1.0-1.ky10.x86_64.rpm Anolis OS 8.10 loongarch64 4.0.1.0 https://gitee.com/njet-rd/njet/releases/download/v4.0.1.0/njet-4.0.1.0-1.an8.loongarch64.rpm Kylin Linux Advanced Server V10(SP3) aarch64 4.0.1.0 https://gitee.com/njet-rd/njet/releases/download/v4.0.1.0/njet-4.0.1.0-1.ky10.aarch64.rpm Centos7.x x86_64 4.0.1.0 https://gitee.com/njet-rd/njet/releases/download/v4.0.1.0/njet-4.0.1.0-1.el7.x86_64.rpm Ubuntu18.04 x86_64 4.0.1.0 https://gitee.com/njet-rd/njet/releases/download/v4.0.1.0/njet_4.0.1.0-1~ubuntu.18.04~bionic_amd64.deb Ubuntu20.04 x86_64 4.0.1.0 https://gitee.com/njet-rd/njet/releases/download/v4.0.1.0/njet_4.0.1.0-1~ubuntu.18.04~bionic_amd64.deb Ubuntu22.04 x86_64 4.0.1.0 https://gitee.com/njet-rd/njet/releases/download/v4.0.1.0/njet_4.0.1.0-1~ubuntu.18.04~bionic_amd64.deb 二进制安装包，可以从gitee的主仓库选择对应的版本进行下载，或通过软件源的方式自动获得后续的 更新，目前支持centos及ubuntu的软件源配置。&#xA;1. 二进制安装 OpenNJet 提供多个版本操作系统下的二进制安装文件，二进制包安装后，所有OpenNJet 相关的文件 都在 /usr/local/njet 目录下， 并在 /usr/lib/systemd/system 目录下添加service 文件。&#xA;Caution a. rpm 和deb 安装后，njet_crtl.conf的监听端口是127.0.0.1 b. rpm/deb 升级及删除时，会保留修改的NJet配置文件</description>
    </item>
    <item>
      <title>基本使用</title>
      <link>https://docs.njet.org.cn/docs/v4.0.1/guide/basic_usage/index.html</link>
      <pubDate>Wed, 13 Aug 2025 13:57:06 +0800</pubDate>
      <guid>https://docs.njet.org.cn/docs/v4.0.1/guide/basic_usage/index.html</guid>
      <description>欢迎阅读 OpenNJet 基本使用文档。本部分包含：1. 目录结构 2. 使用命令 3. 进程介绍</description>
    </item>
    <item>
      <title>nginx迁移指南</title>
      <link>https://docs.njet.org.cn/docs/v4.0.1/guide/nginx-migration-guide/index.html</link>
      <pubDate>Wed, 13 Aug 2025 16:27:50 +0800</pubDate>
      <guid>https://docs.njet.org.cn/docs/v4.0.1/guide/nginx-migration-guide/index.html</guid>
      <description></description>
    </item>
  </channel>
</rss>