Skip to content

Instantly share code, notes, and snippets.

@wen-long
Created June 7, 2014 11:02
Show Gist options
  • Save wen-long/e35c74696050dd081784 to your computer and use it in GitHub Desktop.
Save wen-long/e35c74696050dd081784 to your computer and use it in GitHub Desktop.
wget https://github.com/madeye/shadowsocks-libev/archive/master.zip  --no-check-certificate 

apt-get install unzip ntpdate
unzip master.zip

service ntp stop
ntpdate -s time.nist.gov
service ntp start

cd shadowsocks-libev-master/
./congigure
make
make install

echo net.ipv4.tcp_fastopen=3 >> /etc/sysctl.conf
sysctl -p

底下我自己弄得开机启动

/root/startss如下

nohup /usr/local/bin/ss-local -c /root/qianshu.json -v --fast-open -u >>/root/qianshu.log &
nohup /usr/local/bin/ss-local -c /root/pa1.json -v --fast-open -u >>/root/pa1.log &

/etc/rc.localexit前添加

/root/startss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment