Shadowsocks

安装Shadowsocks

wget –no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

卸载Shadowsocks

./shadowsocks-all.sh uninstall

启动脚本

启动脚本后面的参数含义,从左至右依次为:启动,停止,重启,查看状态。

Shadowsocks-Python 版:

/etc/init.d/shadowsocks-python start | stop | restart | status

ShadowsocksR 版:

/etc/init.d/shadowsocks-r start | stop | restart | status

Shadowsocks-Go 版:

/etc/init.d/shadowsocks-go start | stop | restart | status

Shadowsocks-libev 版:

/etc/init.d/shadowsocks-libev start | stop | restart | status

各版本默认配置文件

Shadowsocks-Python 版:

/etc/shadowsocks-python/config.json

ShadowsocksR 版:

/etc/shadowsocks-r/config.json

Shadowsocks-Go 版:

/etc/shadowsocks-go/config.json

Shadowsocks-libev 版:

/etc/shadowsocks-libev/config.json

Shadowsocks优化

好像因为内核问题BBR和锐速只能二选一

BBR安装

wget –no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

确认BBR开启

A.若输入

sysctl net.ipv4.tcp_available_congestion_control

返回形式如下面这样则开启成功

net.ipv4.tcp_available_congestion_control = bbr cubic reno

B.若输入

lsmod | grep bbr

返回形式如下面这样则开启成功

tcp_bbr 16384 1

锐速安装

wget -N –no-check-certificate https://github.com/91yun/serverspeeder/raw/master/serverspeeder.sh && bash serverspeeder.sh

查看锐速是否运行

service serverSpeeder status

卸载锐速

chattr -i /serverspeeder/etc/apx* && /serverspeeder/bin/serverSpeeder.sh uninstall -f

原文链接:
Shadowsocks: https://teddysun.com/486.html
锐速: https://www.91yun.co/archives/683
SSR配置说明: https://github.com/breakwa11/shadowsocks-rss/wiki/config.json