Last active
August 17, 2017 07:12
-
-
Save sysulq/24b81202e0d919b20fd75311e702ff97 to your computer and use it in GitHub Desktop.
shadowsocks install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#libev-debian | |
wget -N --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev-debian.sh && bash shadowsocks-libev-debian.sh | |
#ruisu | |
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh | |
#开启bbr | |
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf | |
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf | |
sysctl -p | |
#验证 | |
sysctl net.ipv4.tcp_available_congestion_control | |
lsmod | grep bbr | |
#删除 | |
sed -i '/net\.core\.default_qdisc=fq/d' /etc/sysctl.conf | |
sed -i '/net\.ipv4\.tcp_congestion_control=bbr/d' /etc/sysctl.conf | |
sysctl -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment