Edit Commands.md & Snippets.md
Deploy / deploy (push) Successful in 50s

This commit is contained in:
cattom committed 2026-11-06 20:37:25 +08:00
1 parent 26ccbd09bc
commit 290876138a
2 files changed
+80 -1

No files matched your search

@@ -269,7 +269,7 @@ echo 'alias flexget="/root/flexget/bin/flexget -c /root/flexget/config.yml"' >>
| 1 | 8090 | / | / | / | UpSnap |
| 1 | 9090 | / | / | / | One-KVM [^1] |
[^1]: 服务器1的 One-KVM 与 Uptime Kuma 都在容器内。可能由于容器间的网络有特殊限制,One-KVM需要在宿主机处开放端口,才能让 Uptime Kuma 正常访问。
[^1]: 服务器 1 的 One-KVM 与 Uptime Kuma 都在容器内。可能由于容器间的网络有特殊限制,One-KVM 需要在宿主机处开放端口,才能让 Uptime Kuma 正常访问。
*CatTomServer3-1 无非标端口开放。*
@@ -385,6 +385,26 @@ lsmod | grep bbr
### Gitea Actions
(待施工)
## TCP ping 与 UDP ping
**TCP ping**:
```bash
sudo apt install hping3
hping3 -S -p 80 -c 3 www.cisco.com
```
**UDP ping**:
```bash
sudo nmap -sU -p 161 itsfoss.com
netcat -v -u -z itsfoss.com 161
```
## SSH 隧道
``` bash
@@ -441,6 +461,25 @@ rsync -avzP --delete /local/source/folder/ [server_id]:/remote/destination/folde
rsync -avzP --delete [server_id]:/local/source/folder/ /remote/destination/folder/
```
## macOS 恢复挂载网络存储
macOS 完成更新后,依照以下流程恢复挂载 NFS:
- 添加挂载点:
```bash
sudo su
echo "/System/Volumes/Data/mnt/CTS2 auto_mount_config -nosuid,noowners" >> /etc/auto_master
```
- 确认挂载配置有效性:
```bash
cat /etc/auto_mount_config
```
- 恢复挂载并验证:
```bash
automount -vc
ls -al /System/Volumes/Data/mnt/CTS2
```
## 参考
[用于 GitHub Actions 的 SSH](https://github.com/appleboy/ssh-action/blob/master/README.zh-cn.md)