CentOS7 Shadowsocks代理部署

安装 epel-release

没有python-pip包就执行命令

yum -y install epel-release
yum -y install python-pip

安装好的pip进行升级

pip install --upgrade pip

安装shadowsocks

pip install shadowsocks


测试安装

防火墙

iptables -I INPUT -p tcp --dport 3000 -j ACCEPT

启动服务

ssserver -p 3000 -k password -m aes-256-cfb

Centos7设置服务自动启动

vi /etc/systemd/system/shadowsocks.service
在其中添加内容如下

[Unit]
Description=Shadowsocks
[Service]
TimeoutStartSec=0
ExecStart=/usr/bin/ssserver  -p 3000 -k 123456 -m aes-256-cfb
[Install]
WantedBy=multi-user.target

配置shadowsocks服务自启动

systemctl enable shadowsocks
systemctl start shadowsocks
来源: 雨林博客(www.yl-blog.com)