在Ubuntu14.04上安装Socks5服务端

安装依赖包与SS

1
2
3
apt-get update
apt-get install python-pip python-m2crypto
pip install shadowsocks

创建配置文件

/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

参考来源