vault backup: 2026-11-05 15:28:40
This commit is contained in:
1 parent
b1531a1763
commit
b4c41f55fe
1 file changed
+23
-1
@@ -166,7 +166,29 @@ git push -u origin main
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 八、服务器上现在跑的东西(2026-11-05)
|
## 八、常见问题:打不开 Gitea 怎么办
|
||||||
|
|
||||||
|
### 隧道窗口"不动了"是正常的
|
||||||
|
|
||||||
|
`ssh -N` 的意思是"只建隧道、不给命令行"。输完密码后窗口停住不动、没有提示符,**就是隧道通了的样子**。窗口保持开着别关,关了隧道就断了。
|
||||||
|
|
||||||
|
### 打不开 `http://localhost:3001` 的排查顺序
|
||||||
|
|
||||||
|
1. **隧道开着吗?**——tunnel.bat 窗口或单独的 3001 隧道窗口,哪个关了 3001 就断了。重新双击 tunnel.bat(新版已含 3001)。
|
||||||
|
2. **端口冲突**——如果单独的 3001 隧道窗口还开着,tunnel.bat 里的 3001 就绑不上(`bind: address already in use`)。先把所有隧道窗口都关掉,再只开一个。
|
||||||
|
3. **容器在跑吗?**——SSH 上服务器跑:
|
||||||
|
```bash
|
||||||
|
docker ps --filter 'name=gitea' --format '{{.Status}} {{.Ports}}'
|
||||||
|
```
|
||||||
|
看不到 `Up` 就是容器停了,跑 `docker start gitea`。
|
||||||
|
|
||||||
|
### 记住一条
|
||||||
|
|
||||||
|
**Gitea 只认隧道**:它只绑了服务器本机 `127.0.0.1`,外网连不上,浏览器开 `localhost:3001` 之前,隧道必须先开着。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 九、服务器上现在跑的东西(2026-11-05)
|
||||||
|
|
||||||
| 服务 | 位置/端口 | 状态 |
|
| 服务 | 位置/端口 | 状态 |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
|
|||||||
Reference in new issue
Block a user