20260713 unify installer scripts and RTR registration
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
./install.sh
|
||||
./scripts/install.sh
|
||||
```
|
||||
|
||||
安装脚本是幂等的:
|
||||
@@ -17,13 +17,13 @@
|
||||
## 启动
|
||||
|
||||
```bash
|
||||
./start.sh
|
||||
./scripts/start.sh
|
||||
```
|
||||
|
||||
如需后台启动后不等待首轮 snapshot:
|
||||
|
||||
```bash
|
||||
./start.sh --no-wait-first-run
|
||||
./scripts/start.sh --no-wait-first-run
|
||||
```
|
||||
|
||||
如需显式允许异构主机通过 QEMU/binfmt 跑包,先在 `.env` 中设置:
|
||||
@@ -32,20 +32,20 @@
|
||||
ALLOW_CROSS_ARCH=1
|
||||
```
|
||||
|
||||
然后重新执行 `./install.sh` 或 `./self-check.sh`,脚本才会尝试启用对应 binfmt。
|
||||
然后重新执行 `./scripts/install.sh` 或 `./scripts/self-check.sh`,脚本才会尝试启用对应 binfmt。
|
||||
|
||||
## 停止和重启
|
||||
|
||||
```bash
|
||||
./stop.sh
|
||||
./restart.sh
|
||||
./scripts/stop.sh
|
||||
./scripts/restart.sh
|
||||
```
|
||||
|
||||
## 状态检查
|
||||
|
||||
```bash
|
||||
./status.sh
|
||||
./self-check.sh
|
||||
./scripts/status.sh
|
||||
./scripts/self-check.sh
|
||||
```
|
||||
|
||||
重点检查项:
|
||||
@@ -73,15 +73,20 @@ ALLOW_CROSS_ARCH=1
|
||||
如需确认 RTR report 已接入:
|
||||
|
||||
```bash
|
||||
./scripts/register_rtr_monitor.sh --report-dir /root/rpki/report --dry-run
|
||||
./scripts/register_rtr_monitor.sh --report-dir /root/rpki/report
|
||||
./scripts/status.sh
|
||||
curl -s "http://127.0.0.1:${METRICS_PORT:-9556}/metrics" | grep '^ours_rp_rtr_' | head
|
||||
```
|
||||
|
||||
注册只支持同机的绝对目录。注册命令会保留一份带时间戳的 `.env` 备份,并且只更新 metrics、Prometheus、Grafana 三个旁路容器;`ours-rp-soak` 的容器 ID 应保持不变。
|
||||
|
||||
## 升级
|
||||
|
||||
把新安装包解压到新目录后,推荐通过升级脚本显式复用旧 `.env`:
|
||||
|
||||
```bash
|
||||
./upgrade.sh --reuse-env-from /path/to/old-installer/.env
|
||||
./scripts/upgrade.sh --reuse-env-from /path/to/old-installer/.env
|
||||
```
|
||||
|
||||
如果新目录已经存在 `.env`,升级脚本会保留它,不覆盖。
|
||||
@@ -125,8 +130,8 @@ PERIODIC_SNAPSHOT_MAX_DELTAS=100
|
||||
## 清理
|
||||
|
||||
```bash
|
||||
./cleanup.sh --keep-runs 100
|
||||
./cleanup.sh --keep-runs 100 --execute
|
||||
./scripts/cleanup.sh --keep-runs 100
|
||||
./scripts/cleanup.sh --keep-runs 100 --execute
|
||||
```
|
||||
|
||||
默认 dry-run,确认后加 `--execute`。
|
||||
|
||||
Reference in New Issue
Block a user