我的VPS选的ub/debian系统

apt-get install python python-pip

pip install shadowsocks

vi /etc/shadowsocks.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"server":"my_server_ip"
"local_address": "127.0.0.1",
"local_port":3333,
"port_password": {
"8381": "foobar1",
"8382": "foobar2",
"8383": "foobar3",
"8384": "foobar4"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}

保存配置文件后启动

开始:ssserver -c /etc/shadowsocks.json -d start
结束:ssserver -c /etc/shadowsocks.json -d stop