Skip to content

Instantly share code, notes, and snippets.

@sdhjl2000
Last active August 29, 2015 14:25
Show Gist options
  • Save sdhjl2000/045baf23622d3b7f5cf9 to your computer and use it in GitHub Desktop.
Save sdhjl2000/045baf23622d3b7f5cf9 to your computer and use it in GitHub Desktop.
centos安装shadowsocks

wget https://github.com/shadowsocks/shadowsocks-libev/archive/master.zip

unzip master.zip

开始编译

cd shadowsocks-libev*

./autogen.sh

./configure --prefix=/usr && make

make install

准备必须的文件

mkdir -p /etc/shadowsocks-libev

cp ./rpm/SOURCES/etc/init.d/shadowsocks-libev /etc/init.d/shadowsocks-libev

cp ./debian/config.json /etc/shadowsocks-libev/config.json

chmod +x /etc/init.d/shadowsocks-libev

编辑配置文件

vim /etc/shadowsocks-libev/config.json

启动服务

service shadowsocks-libev start

#启动本地socks sslocal -c /etc/shadowsocks-libev/config.json -d start --pid-file /tmp/sslocal.pid --log-file /tmp/sslocal.log

#安装polipo /etc/polipo/config

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