版权声明:本文自撰,转载先跟我说一下比较好 https://blog.csdn.net/KimBing/article/details/52830311
Linux Centos 配置 Shadowsocks
1. 安装Shadowsocks
yum install python-setuptools && easy_install pip
pip install shadowsocks
2. 创建配置文件ssconfig.json
{
"server": "ip地址",
"port_password": {
"端口号": "密码",
"端口号": "密码",
"端口号": "密码"
},
"timeout": 300,
"method": "aes-256-cfb"
}
3. 启动服务
ssserver -c /etc/shadowsocks.json -d start
4. 开机自动启动
编辑 /etc/rc.d/rc.local添加
# -c 指定配置文件
# -d start|stop|restart 后台运行服务
ssserver -c /root/confs/ssconfig.json -d start
5. 停止,启动,重启服务
# 启动
ssserver -d start -c /root/confs/ssconfig.json
# 停止
ssserver -d stop
# 重启
ssserver -d restart -c /root/confs/ssconfig.json