1.安装pip
wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py python get-pip.py
2.通过pip安装
pip install shadowsocks
3.配置
shadowsocks
创建配置文件 /etc/shadowsocks.json
. 例如:
{
"server":"my_server_ip",
"server_port":8388,
"local_port":1080,
"password":"barfoo!",
"timeout":600,
"method":"table"
}
Explanation of each field:
server
: your hostname or server IP (IPv4/IPv6).server_port
: server port number.local_port
: local port number.password
: a password used to encrypt transfer.timeout
: connections timeout in seconds.method
: encryption method, “bf-cfb”, “aes-256-cfb”, “des-cfb”, “rc4”, etc. Default is table, which is not secure. “aes-256-cfb” is recommended.
To run in the foreground:
ssserver -c /etc/shadowsocks.json
To run in the background:
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop