执行脚本

1
[root@iZj10kpmbmyt18Z ~]# ./shadowsocks.sh

第一次可能会因为github原因失败,可再次尝试,出现以下页面即为安装成功

1
2
3
4
5
6
7
8
Congratulations, Shadowsocks-Python server install completed!
Your Server IP : 182.92.103.141
Your Server Port : 8989
Your Password : teddysun.com
Your Encryption Method: aes-256-gcm

Welcome to visit: https://teddysun.com/486.html
Enjoy it!

修改配置文件 /etc/Shadowsocks-Python/config.json

1
2
3
4
5
6
7
8
9
10
{
"server":"0.0.0.0", //配置服务端地址,不需要修改
"server_port":8989, //服务端端口,可以根据需要修改,建议改成大点的不会被占用的端口
"local_address":"127.0.0.1", //本地地址,不需要修改
"local_port":1080, //本地端口,可以根据需要修改
"password":"nmk1234567", //密码
"timeout":300, //连接超时时间
"method":"rc4-md5", //加密方式
"auth": false //需要验证
}

启动

1
2
3
4
sslocal -c /etc/shadowsocks-python/config.json

或者
/etc/init.d/shadowsocks restart