Debian下安装配置ShadowSocks的方法
1.系统更新并安装pip Shadowsocks
aptitude update
aptitude install python-pip
pip install shadowsocks
2.创建配置文件 /etc/shadowsocks.json
{
"server":"0.0.0.0",
"server_port":1080,
"password":"password",
"timeout":600,
"method":"aes-256-cfb"
}
配置的说明: Name Explanation server the address your server listens(服务器IP) local_address the address your local listens(本地代理地址) local_port local port(本地代理端口) port_password password used for encryption(自己设定的服务器端口和密码) timeout in seconds(超时断开,以秒为单位) method default: “aes-256-cfb”, see Encryption(加密方式) fast_open use TCP_FASTOPEN, true / false(是否使用TCP) workers number of workers, available on Unix/Linux(这个只在Unix和Linux下有用,可不设置)
3.启动 ssserver
ssserver -c /etc/shadowsocks.json start
4.安装配置supervisor
aptitude install supervisor
编辑 /etc/supervisor/conf.d/shadowsocks.conf
[program:shadowsocks]
command=ssserver -c /etc/shadowsocks.json
autorestart=true
user=nobody
/etc/init.d/supervisor restart
使用方法参考各个浏览器相关文章