在 Debian 12 上通过 apt 安装 shadowsocks-libev 并配置 systemd 自启。

1
2
apt update
apt install -y shadowsocks-libev vim

配置

编辑

1
vim /etc/shadowsocks-libev/config.json

输入

1
2
3
4
5
6
7
8
9
10
{
"server":"0.0.0.0",
"server_port":30201,
"password":"你的强密码123",
"timeout":300,
"method":"aes-256-gcm",
"fast_open": false,
"nameserver":"8.8.8.8",
"mode":"tcp_and_udp"
}

启动

1
2
3
systemctl enable shadowsocks-libev
systemctl start shadowsocks-libev
systemctl status shadowsocks-libev