Skip to content

Instantly share code, notes, and snippets.

@jiahut
Last active January 3, 2018 12:09
Show Gist options
  • Save jiahut/51db4f22304b13642addea656ebc280a to your computer and use it in GitHub Desktop.
Save jiahut/51db4f22304b13642addea656ebc280a to your computer and use it in GitHub Desktop.
yum install build-essential autoconf libtool openssl-devel gcc git -y
cd /tmp/
git clone --depth=1 https://github.com/madeye/shadowsocks-libev.git
cd shadowsocks-libev
./configure --disable-documentation
make && make install
mkdir -p ~/bin
echo "nohup /usr/local/bin/ss-server -s 0.0.0.0 -p 80 -k yourpassword -m rc4-md5 --fast-open > /var/log/ss & " > ~/bin/ss.start
chmod u+x ~/bin/ss.start
ss.start
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment