yum install -y python-pip 或 yum install -y python-setuptools && easy_install pip
pip install ***
vi /etc/***.json
1:作为服务器的配置(不能配置server)
1 #单用户配置
2 {
3 "server_port":9850,
4 "local_address": "127.0.0.1",
5 "local_port":1080,
6 "password":"xxxxxx",
7 "timeout":300,
8 "method":"rc4-md5"
9 }
10 #多用户配置
11 {
12 "port_password":{
13 "9850":"xxxxxx",
14 "9870":"xxxxxx"
15 },
16 "local_address": "127.0.0.1",
17 "local_port":1080,
18 "timeout":300,
19 "method":"rc4-md5"
20 }
21 #启动
22 ssserver -c /etc/***.json -d start
2.作为客户端配置
1 {
2 "server":"47.91.xxx.xxx",
3 "server_port":9850,
4 "local_address": "127.0.0.1",
5 "local_port":1080,
6 "password":"xxxxxx",
7 "timeout":300,
8 "method":"rc4-md5"
9 }
10 #启动
11 sslocal -c /etc/***.json
12 #后台启动
13 nohup sslocal -c /etc/***.json &>> /tmp/log/sslocal.log &