shadowsocks配置须知

缘由:记录下shadowsocks的基本配置,方便今后查找

一、VPS上安装shadowsocks

1
pip install shadowsocks

二、配置文件配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"server":"138.128.198.147",
"timeout":600,
"method":"aes-256-cfb",
"port_password":
{
"9000":"hehe",
"9001":"haha",
"9002":"xiaozuo",
"9003":"zhanyuan",
"9004":"minghang"
},
"_comment":
{
"9000":"hehe",
"9001":"haha",
"9002":"xiaozuo",
"9003":"zhanyuan",
"9004":"minghang"
}
}

三、启动服务

将配置文件保存为/etc/shadowsocks/config.json,然后按配置文件启动shadowsocks:

1
ssserver -c /etc/shadowsocks/config.json -d start

停止shadowsocks服务:

1
ssserver -d stop

坚持原创技术分享,您的支持将鼓励我继续创作!