本文内容均援引自网络,仅作学习用途。
Shadowsocks安装
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log
- 启动:/etc/init.d/shadowsocks start
- 修改配置文件:
/etc/shadowsocks.json
- 重新启动:
/etc/init.d/shadowsocks restart
- 加速:
- 安装锐速(类似BBR):
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh
- TCP快速启动(TCP Fast Open):
vim /etc/rc.local
追加一条:echo 3 > /proc/sys/net/ipv4/tcp_fastopen
;vim /etc/sysctl.conf
追加一条:net.ipv4.tcp_fastopen = 3
;vim /etc/shadowsocks.json
,修改一条:"fast_open":true
- 安装锐速(类似BBR):
shadowsocks.json说明
{
"server":"0.0.0.0",
"server_port": <ss服务端口>,
"local_address":"127.0.0.1",
"local_port": <ss本地端口>,
"password":"<ss密码>",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":true
}
// 多密码支持
"port_password": {
"<port>": "<password>"
}
相关文章
- shadowsocks.org
- shadowsocks_install
- shadowsocks libev 一键安装
- serverspeeder-锐速破解版
- 开启TCP BBR拥塞控制算法 - 推荐,相较于serverspeeder而言,BBR更加快,且不用更改内核。