1 2 3 |
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-go.sh chmod +x shadowsocks-go.sh ./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log |
客户端下载地址:
软件版本已经更新到稳定版本,压缩包内涵使用说明!
后期维护:
1 2 3 4 5 6 7 |
./shadowsocks-go.sh uninstall //卸载 vim /etc/shadowsocks/config.json //修改参数 /etc/init.d/shadowsocks start //启动 /etc/init.d/shadowsocks stop //停止 /etc/init.d/shadowsocks restart //重启 /etc/init.d/shadowsocks status //查看状态 vim /etc/shadowsocks/config.json //单用户修改配置文件 |
单用户配置方法:
1 2 3 4 5 6 7 8 9 10 11 12 |
vim /etc/shadowsocks/config.json { "server":"your_server_ip", "server_port":443, "local_address":"127.0.0.1", "local_port":1080, "password":"yourpassword", "timeout":300, "method":"rc4-md5", "fast_open": false } |
多用户修改配置方法:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
vim /etc/shadowsocks/config.json { "server":"your_server_ip", "local_address": "127.0.0.1", "local_port":1080, "port_password":{ "8989":"password0", "9001":"password1", "9002":"password2", "9003":"password3", "9004":"password4" }, "timeout":300, "method":"rc4-md5", "fast_open": false } |
卸载方法:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
使用 root 用户登录,运行以下命令: ./shadowsocks-go.sh uninstall 安装完成后即已后台启动 shadowsocks ,运行: ps -ef | grep ss-server | grep -v ps | grep -v grep 可以查看进程是否存在。 本脚本安装完成后,会将shadowsocks-go.sh 加入开机自启动。 使用命令: 启动:/etc/init.d/shadowsocks start 停止:/etc/init.d/shadowsocks stop 重启:/etc/init.d/shadowsocks restart 查看状态:/etc/init.d/shadowsocks status |
特别说明:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
1、已安装旧版本的 shadowsocks 需要升级的话,需下载本脚本的最新版,运行卸载命令./shadowsocks-libev.sh uninstall 后,再次执行本脚本即可安装最新版。 2、关于 CentOS 的默认 iptables 防火墙规则 icmp-host-prohibited ,如果安装之后发现已经启动 shadowsocks,本地客户端却不能连接上,请检查 iptables 是不是有如下的一条规则: REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited 运行命令: /etc/init.d/iptables status 可以查看。如果有这条规则,则添加的 8989 端口需手动更改一下,放到这条规则的上一行。编辑 /etc/sysconfig/iptables 文件,将: -A INPUT -p tcp -m state --state NEW -m tcp --dport 8989 -j ACCEPT 放在: -A INPUT -j REJECT --reject-with icmp-host-prohibited 的前面。最终效果如下: -A INPUT -p tcp -m state --state NEW -m tcp --dport 8989 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited 编辑完后,重启 iptables 防火墙。命令:/etc/init.d/iptables restart Debian下shadowsocks-libev一键安装脚本 wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev-debian.sh chmod +x shadowsocks-libev-debian.sh ./shadowsocks-libev-debian.sh 2>&1 | tee shadowsocks-libev-debian.log CentOS 下 shadowsocks-python 一键安装脚本 wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh chmod +x shadowsocks.sh ./shadowsocks.sh 2>&1 | tee shadowsocks.log |
2017年12月06日 10:33 沙发
万总6666
2018年01月26日 22:38 1层
@小酱沫 二把手,你个水军··