Update README.md

This commit is contained in:
Lsmoisu 2025-03-09 10:03:43 +08:00 committed by GitHub
parent 0147dd2688
commit 68c5126592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,45 +16,27 @@ Sing-Box Shell
从 GitHub 部署 从 GitHub 部署
```shell ```shell
bash <(curl -s https://github.com/Lsmoisu/sing-box-shell/raw/refs/heads/main/install.sh) bash <(curl -s https://github.com/Lsmoisu/sing-box-shell/raw/refs/heads/main/install.sh)
从其他 Git 源部署
``` ```
收起 从 其他Git 部署
```shell
自动换行
复制
bash <(curl -s https://git.hechunyu.com/chunyu/sing-box-shell/raw/branch/main/install.sh) bash <(curl -s https://git.hechunyu.com/chunyu/sing-box-shell/raw/branch/main/install.sh)
```shell
本地运行 本地运行
下载脚本: 下载脚本:
bash ```shell
收起
自动换行
复制
wget https://github.com/Lsmoisu/sing-box-shell/raw/refs/heads/main/install.sh wget https://github.com/Lsmoisu/sing-box-shell/raw/refs/heads/main/install.sh
```
添加执行权限并运行: 添加执行权限并运行:
bash ```shell
收起
自动换行
复制
chmod +x install.sh chmod +x install.sh
sh install.sh sh install.sh
```
卸载方法 卸载方法
运行脚本时添加 uninstall 参数: 运行脚本时添加 uninstall 参数:
```shell
bash
收起
自动换行
复制
sh install.sh uninstall sh install.sh uninstall
```
卸载将移除 sing-box 可执行文件、配置文件、服务、防火墙规则,并尝试恢复网络设置(如 /etc/resolv.conf 和 IP 转发)。 卸载将移除 sing-box 可执行文件、配置文件、服务、防火墙规则,并尝试恢复网络设置(如 /etc/resolv.conf 和 IP 转发)。
使用说明 使用说明