edit commands.md
All checks were successful
Deploy / deploy (push) Successful in 51s

This commit is contained in:
2026-03-12 22:18:33 +08:00
parent 32bfe0435d
commit 922dd5f11c

View File

@@ -40,6 +40,33 @@ git clone git@github.com:cattomgithub/maria.git
cd maria/script && chmod +x *.sh && ./maria.sh
```
### HomeLab
**编辑 SSH 客户端配置**:
```bash
sudo nano ~/.ssh/config
```
``` title="~/.ssh/config"
Host gitea.cattom.site
HostName gitea.cattom.site
User git
Port 25801
PreferredAuthentications publickey
IdentityFile "~/.ssh/cattom-gitea"
```
测试能否正常连接: `ssh -T git@gitea.cattom.site`
**克隆 HomeLab 仓库**:
```bash
git clone git@gitea.cattom.site:cattom/HomeLab.git
cd HomeLab && chmod +x *.sh && ./Ini.sh
```
## 修改 SSH 配置
**启动 SSH 服务**:
@@ -178,13 +205,13 @@ Maria 非标端口开放表:
| 2 | 5230 | 127.0.0.1 | / | / | Memos |
| 2 | 3002 | 127.0.0.1 | / | / | Homepage |
| 2 | 3100 | 127.0.0.1 | / | / | Gitea |
| 2 | 25801 | 127.0.0.1 | / | / | Gitea SSH |
| 2 | 25801 | / | / | / | Gitea SSH |
| 服务器 | 端口 | 来源IP/IP段 | 目标IP/IP段 | 协议 | 备注 |
| :----: | :---: | :-----------: | :---------: | :---: | :---------------: |
| 3 | 6800 | 127.0.0.1 | / | / | Aria2 RPC |
| 3 | 6888 | / | / | / | Aria2 BT |
| 3 | 6888 | / | / | UDP | Aria2 BT |
| 服务器 | 端口 | 来源IP/IP段 | 目标IP/IP段 | 协议 | 备注 |
| :----: | :---: | :-----------: | :---------: | :---: | :----------------: |
| 3 | 6800 | 127.0.0.1 | / | / | Aria2 RPC |
| 3 | 6888 | / | / | / | Aria2 BT |
| 3 | 6888 | / | / | UDP | Aria2 BT |
| 3 | 9100 | 100.64.0.0/10 | / | / | Node Exporter [^1] |
[^1]: 服务器3的 Prometheus 处于容器内,而 Node Exporter 处于宿主机,必须保留该规则以保持二者连通。