docs: clarify controller host startup
This commit is contained in:
parent
6257265e14
commit
47a4974ae1
12
README.md
12
README.md
@ -119,14 +119,18 @@ Redis、PostgreSQL 和 Controller fixture 脚本会使用 Docker 启动隔离依
|
|||||||
./scripts/test-controller.ps1
|
./scripts/test-controller.ps1
|
||||||
```
|
```
|
||||||
|
|
||||||
PostgreSQL 与 Redis 是 Controller 的启动依赖。确保它们在
|
PostgreSQL 与 Redis 是 Controller 的启动依赖。当前可运行的 Controller 入口如下,
|
||||||
[`deploy/config/local.yaml`](deploy/config/local.yaml) 配置的地址可达后,启动
|
将 `CONFIG_FILE` 替换为实际配置路径,并确保其中的 PostgreSQL 与 Redis 地址可从
|
||||||
当前已实现的 Controller 进程:
|
进程所在网络访问:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
go run ./cmd/proxy-controller -config deploy/config/local.yaml
|
go run ./cmd/proxy-controller -config CONFIG_FILE
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[`deploy/config/local.yaml`](deploy/config/local.yaml) 面向 Compose 网络,默认使用
|
||||||
|
服务名 `postgres` 和 `redis`;它可直接用于配置校验,但宿主机执行 `go run` 时需要
|
||||||
|
改用宿主机可达的存储地址。
|
||||||
|
|
||||||
本地配置中的 `.invalid` Provider URL 是故障演示占位,不会提供真实代理。
|
本地配置中的 `.invalid` Provider URL 是故障演示占位,不会提供真实代理。
|
||||||
当前仓库没有 Gateway、Checker 或 loadgen 命令,因此不提供对应启动命令。
|
当前仓库没有 Gateway、Checker 或 loadgen 命令,因此不提供对应启动命令。
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user