install shadowsocks on centos7

install

$ yum install python-setuptools && easy_install pip /y
$ pip install shadowsocks

config

$ sudo mkdir /etc/shadowsocks
$ sudo vi /etc/shadowsocks/shadowsocks.json

edit config

{
    "server":"0.0.0.0",
    "server_port":7488,
    "password":"ss135246",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": true
}

start

$ ssserver -c /etc/shadowsocks/shadowsocks.json -d start

stop

$ ssserver -c /etc/shadowsocks/shadowsocks.json -d stop

start on boot

sudo ssserver -c /etc/shadowsocks/shadowsocks.json --user nobody -d start

disable firewall and selinux

systemctl disable firewalld.service 
vi /etc/selinux/config

change sshd's port

vi /etc/ssh/sshd_config