Centos7 系统一键安装 Shadowsocks 和 KCPTUN 加速

centos7系统可以使用下面的安装脚本一键安装

安装命令

sh -c "$(curl -fsSL https://bit.ly/2GppK6X)"

或者

sudo sh -c "$(curl -fsSL https://bit.ly/2GppK6X)"

安装完毕后查看ss配置

cat /etc/ss-config.json

查看kcptun配置

/etc/kcp-config.json

如果想要修改,使用vi命令即可。修改完记得重启服务才能生效!
重启ss服务

systemctl restart shadowsocks-server

重启kcptun服务

systemctl restart kcp-server

卸载命令

卸载ss

systemctl stop shadowsocks-server
systemctl disable shadowsocks-server
rm -f /etc/ss-config.json /etc/systemd/system/shadowsocks-server.service
systemctl daemon-reload

卸载kcptun

systemctl stop kcp-server
systemctl disable kcp-server
rm -f /etc/kcp-config.json /etc/systemd/system/kcp-server.service
systemctl daemon-reload

猜你喜欢

转载自blog.csdn.net/shana_8/article/details/81151077
今日推荐