0, 安装shadowsocks
1 | pip install https://github.com/shadowsocks/shadowsocks/archive/master.zip -U |
1, 配置shadowsocks
1 | cat > /etc/shadowsocks.json << EOF |
2, 后台启动程序
1 | ssserver -c /etc/shadowsocks.json -d start |
3, 配置开机自启
1 | echo "ssserver -c /etc/shadowsocks.json -d start" >> /etc/rc.local |