安装命令
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