二进制包部署
本文介绍使用二进制包部署 Apache ShenYu 网关。
启动 Apache ShenYu Admin#
解压缩
apache-shenyu-incubating-2.4.2-admin-bin.tar.gz。 进入bin目录。使用
h2来存储后台数据:
> windows: start.bat --spring.profiles.active = h2
> linux: ./start.sh --spring.profiles.active = h2- 使用
MySQL来存储后台数据,将mysql-connector.jar 拷贝到/${your_work_dir}/ext-lib, 进入/conf目录,修改application.yaml中mysql的配置。
> windows: start.bat
> linux: ./start.sh - 使用
PostgreSql来存储后台数据, 进入/conf目录,修改application.yaml中spring.profiles.active的配置为pg。
> windows: start.bat
> linux: ./start.sh 启动 Apache ShenYu Bootstrap#
解压缩
apache-shenyu-incubating-2.4.2-bootstrap-bin.tar.gz。 进入 bin 目录。
> windwos : start.bat
> linux : ./start.sh 启动 ShenYu Bootstrap 的同时,启动 ShenYu Agent#
2.4.2版本开始支持shenyu-agent
agent 相关配置在 ./agent/conf,详细配置请参考 可观测性
如果你想使用 shenyu-agent,只需要在启动时添加一个参数:agent
./start.sh agent