第一步 安装shadowsocks

yum install -y python-pip
pip install shadowsocks

or

yum install -y python-setuptools
easy_install pip
pip install shadowsocks

第二步 创建配置文件

mkdir /etc/shadowsocks
vi /etc/shadowsocks/config.json
{
"server":"0.0.0.0",
"port_password":{
"8388":"123456"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}

第三步 启动shadowsocks

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

第四步 开端口(视环境而定)

service iptables start/stop/restart/status
chkconfig iptables on/off

firewall-cmd --zone=public --list-ports
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone= public --remove-port=80/tcp --permanent
firewall-cmd --reload

第五步 开启bbr加速(这一步可以省略)

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
chmod +x bbr.sh
./bbr.sh
uname -r
lsmod | grep bbr