Last active
October 10, 2017 03:12
-
-
Save nw4869/af77ecbb4ccab918921464a4070a2dab to your computer and use it in GitHub Desktop.
一键shadowsocks-libev + 锐速(自己换内核重启) + supervisor。usage: bash <(curl -s https://gist.githubusercontent.com/nw4869/af77ecbb4ccab918921464a4070a2dab/raw/1a943b5a1c6cf5b6ddb9ceda51e2bc2a4f9db7af/oneclick_ss-server_for_ubuntu_16.04.sh)
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
# 一键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