OpenVZ VPS centos6 install shadowsocket
# build environment
yum install build-essential autoconf libtool openssl-devel gcc git xmlto asciidoc pcre-devel -y
# download shadowsocks-libev and build + install
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev/
./configure
make && make install
# add init.d service
mkdir -p /etc/shadowsocks-libev
cp ./rpm/SOURCES/etc/init.d/shadowsocks-libev /etc/init.d/shadowsocks-libev
## modify /usr/bin to /usr/local/bin as libev installed to /usr/local/bin by default
sed -i 's|/usr/bin/|/usr/local/bin/|g' /etc/init.d/shadowsocks-libev
chmod +x /etc/init.d/shadowsocks-libev
# modify config
cp ./debian/config.json /etc/shadowsocks-libev/config.json
## explanation:
##{
## "server":"127.0.0.1", #you vps ip addr
## "server_port":8838, # vps server port open for ss connection
## "local_port":1080, # local port connect to ss
## "password":"yourpasswordforshadowsocks",
## "timeout":600, #connection timeout
## "method":"chacha20" # obfuscation method, you could also use 'rc4-md5'(fast, but less secure than chacha20) or 'aes-256-cfb'(slow on router)
##}
vi /etc/shadowsocks-libev/config.json
# start service
/etc/init.d/shadowsocks-libev start
problem: