1,安装shadowsock yum install m2crypto python-setuptools yum install python-pip pip install shadowsocks 添加文件vi /etc/shadowsocks.json { "server":"0.0.0.0", "server_port":8388, "local_address": "127.0.0.1", "local_port":1080, "password":"m", "timeout":600, "method":"aes-256-cfb", "fast_open": false } 多用户 { "server":"0.0.0.0", "local_address":"127.0.0.1", "local_port":1080, "port_password":{ "1234":"password0", "1235":"password1", }, "timeout":600, "method":"aes-256-cfb", "fast_open": false } 2,安装、开启防火墙让8388端口设置为允许对外访问 yum install firewalld systemctl start firewalld firewall-cmd --zone=public --add-port=8388/tcp --permanent firewall-cmd --reload 3,启动服务设置 添加文件vim /usr/lib/systemd/system/ss.service 内容: [Unit] Description=ssserver [Service] TimeoutStartSec=0 ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json & [Install] WantedBy=multi-user.target systemctl start ss #开启 systemctl restart ss #重启 systemctl status #查看状态 4,设置开机自动启动 systemctl enable ss 杀进程 ps -ef | grep shadowsocks kill -9 xx 5,客户端 win: https://github.com/shadowsocks/shadowsocks-windows/releases mac: https://github.com/shadowsocks/ShadowsocksX-NG/releases linux: https://github.com/shadowsocks/shadowsocks-qt5/wiki/Installation