apt-get update
apt-get install python-gevent python-pip
pip install shadowsocks
apt-get install python-m2crypto

打开 /etc/shadowsocks.json

{
"server":"my_server_ip",
"server_port":8000,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb"
}
ssserver -c /etc/shadowsocks.json -d start

配置开机自启动,添加到 /etc/rc.local

/usr/local/bin/ssserver -c /etc/shadowsocks.json