安装依赖包与SS
1 | apt-get update |
创建配置文件
在/etc/shadowsocks/config.json
文件里写入配置内容:1
2
3
4
5
6
7
8
9{
"server": "YOUR_SERVER_IP",
"server_port": 8388,
"local_port": 1080,
"password": "YOUR_SS_PASSWORD",
"timeout": 300,
"method": "aes-256-cfb",
"fast_open": false
}
启动SS
sudo /usr/local/bin/ssserver -c /etc/shadowsocks/config.json --user nobody -qq -d start
也可以把这个命令加到 /etc/rc.local
里面,每次系统启动都会启动SS