首先需要wget,没有的话使用命令:yum -y install wget

1、wget –no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
2、chmod +x shadowsocks.sh
3、./shadowsocks.sh 2>&1 | tee shadowsocks.log

中间会提示输入密码、加密方式等待

安装完之后是单用户,如果需要多用户使用,需要:
vim /etc/shadowsocks.json

{
    "server":"0.0.0.0",
    "local_address":"127.0.0.1",
    "local_port":1080,
    "port_password":{
         "端口1":"密码1",
         "端口2":"密码2",
         "端口3":"密码3"

    },
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

修改后执行/etc/init.d/shadowsocks restart重启生效。

启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status

01-10 00:10