Files
ss-rust/README.md
2026-07-20 08:35:22 +08:00

47 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# SS-Rust 一键安装脚本
一键安装 shadowsocks-rust自动配置 ss2022 双节点,生成订阅链接 + Surge/Clash 配置。
安装时可选择是否启用 UDP默认启用。普通节点会使用 TCP+UDPHTTP obfs 节点保留 obfs TCP 前端,并在相同公网端口额外提供原生 Shadowsocks UDP。
## 一键安装
```bash
curl -sL https://mjjtop.com/ss -o ss-rust.sh && chmod +x ss-rust.sh && ./ss-rust.sh
```
## 功能
- 🚀 安装 shadowsocks-rust 最新版
- 🔐 ss2022 (AES-256-GCM) + ss2022 (AES-128-GCM) 双节点
- 🎲 随机端口 + 随机密钥
- ⏰ 自动 NTP 时间同步
- 📋 自动生成 SS 订阅链接 / Surge 配置 / Clash 配置
- 📡 可控 UDP 转发,生成的 Clash 节点会同步标记 UDP 能力
- 🔄 systemd 管理,开机自启
## 输出文件
| 文件 | 说明 |
|------|------|
| `/etc/shadowsocks-rust/config.json` | 服务端配置 |
| `/etc/shadowsocks-rust/subscribe/subscribe.txt` | Base64 订阅 |
| `/etc/shadowsocks-rust/subscribe/surge.conf` | Surge 配置 |
| `/etc/shadowsocks-rust/subscribe/clash.yaml` | Clash 配置 |
| `/etc/shadowsocks-rust/subscribe/info.txt` | 节点信息汇总 |
## 管理
```bash
systemctl start ss-rust # 启动
systemctl stop ss-rust # 停止
systemctl status ss-rust # 状态
journalctl -u ss-rust -f # 日志
```
## 卸载
```bash
./ss-rust.sh uninstall
```