Skip to content

Instantly share code, notes, and snippets.

@sysulq
Last active August 17, 2017 07:12
Show Gist options
  • Save sysulq/24b81202e0d919b20fd75311e702ff97 to your computer and use it in GitHub Desktop.
Save sysulq/24b81202e0d919b20fd75311e702ff97 to your computer and use it in GitHub Desktop.
shadowsocks install
#!/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