2016年10月

debian 8 python SS server

apt-get install python-pip libsodium-dev  
pip install shadowsocks

创建配置文件/etc/shadowsocks.json

{
    "server":"my_server_ip",
    "server_port":8388,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"mypassword",
    "timeout":300,
    "method":"chacha20",
    "fast_open": false
}

后台运行ssserver

ssserver -c /etc/shadowsocks.json -d start (启动)
ssserver -c /etc/shadowsocks.json -d stop  (停止)

开机启动vi /etc/rc.local 在exit 0前添加启动命令

 

#END#