Skip to content

Instantly share code, notes, and snippets.

@nw4869
Last active October 10, 2017 03:12
Show Gist options
  • Save nw4869/af77ecbb4ccab918921464a4070a2dab to your computer and use it in GitHub Desktop.
Save nw4869/af77ecbb4ccab918921464a4070a2dab to your computer and use it in GitHub Desktop.
# 一键shadowsocks-libev + 锐速(自己换内核重启) + supervisor
sudo apt install software-properties-common -y
add-apt-repository ppa:max-c-lv/shadowsocks-libev
apt update
apt install shadowsocks-libev rng-tools -y
cat > /etc/shadowsocks-libev/config.json << EOF
{
"server":"0.0.0.0",
"server_port":443,
"local_port":1080,
"password":"night4869wind",
"timeout":60,
"method":"aes-192-cfb",
"fast_open": true
}
EOF
ufw allow 443
apt install supervisor -y
systemctl enable supervisor
cat > /etc/supervisor/conf.d/shadowsocks.conf << EOF
[program:shadowsocks]
command=ss-server
autorestart=true
EOF
supervisorctl update
sysctl net.ipv4.tcp_fastopen=3
#sysctl net.ipv4.tcp_congestion_control=hybla
apt install wget -y
wget xiaofd.github.io/ruisu.sh && bash ruisu.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment