Shoes 安装 Shadowsocks 2022 服务端教程
环境
- 系统:Debian 13 / Ubuntu 等 Linux 发行版
- 架构:x86_64
1. 下载并安装 Shoes
# 下载 shoes 预编译二进制文件(根据你的架构选择对应版本)
wget https://github.com/cfal/shoes/releases/download/v0.2.6/shoes-x86_64-unknown-linux-gnu.tar.gz
# 解压
tar -zxvf shoes-x86_64-unknown-linux-gnu.tar.gz
# 添加执行权限
chmod +x shoes
# 移动到系统目录,使其可全局调用
mv shoes /usr/local/bin
2. 生成配置文件
# 创建配置文件目录
mkdir -p /etc/shoes/
# 生成 Shadowsocks 2022 密码(记录输出的密码)
shoes generate-shadowsocks-2022-password 2022-blake3-aes-256-gcm
# 创建配置文件
vim /etc/shoes/config.yaml
配置文件内容如下(将 password 替换为上一步生成的密码):
- address: "0.0.0.0:1080"
protocol:
type: shadowsocks
cipher: 2022-blake3-aes-256-gcm
password: "你生成的密码"
3. 配置 systemd 服务
# 创建 systemd 服务文件
vim /etc/systemd/system/shoes.service
服务文件内容:
[Unit]
Description=Shoes Proxy Service
After=network.target
[Service]
User=root
ExecStart=/usr/local/bin/shoes /etc/shoes/config.yaml
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
4. 启动服务
# 重新加载 systemd 配置
systemctl daemon-reload
# 启用服务并立即启动
systemctl enable shoes --now
# 查看运行状态
systemctl status shoes
# 查看日志(可选)
journalctl -u shoes -f
5. 客户端连接信息
- 服务器地址:你的服务器 IP
- 端口:1080
- 加密方式:2022-blake3-aes-256-gcm
- 密码:配置文件中设置的密码