安装
安装 Pipy
参考 Pipy 安装文档 安装最新版本的 Pipy,可以从 Pipy 的 Release 页面 下载安装。
Pipy 是一个单一的可执行文件,下载后可以将其复制到操作系统的 bin 目录即可。
运行
FGW 的运行有两种模式:从文件系统启动和从网络启动,后者就是 Pipy Repo 模式。
从文件系统启动
可以从 GitHub 仓库克隆 FGW 的脚本。
git clone https://github.com/flomesh-io/fgw.git
克隆完仓库之后,进入到工程根目录中,执行下面的命令即可:
pipy ./pjs/main.js
从网络启动
运行 Repo 模式,我们可以使用 FGW 的 Docker 镜像。
docker run --rm -d --name fgw -p 6060:6060 flomesh/fgw:latest
执行下面的命令启动:
pipy http://localhost:6060/repo/base/fgw/
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
最后修改 November 29, 2023: add docs for fault injection and request mirror, fix typo (b53e400)