Shadowsocks脚本部署指南

Shadowsocks脚本部署指南

下载脚本

sudo wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh

添加执行权限

sudo chmod +x shadowsocks.sh

安装编译环境

sudo apt install build-essential

运行脚本

sudo ./shadowsocks.sh 2>&1 | sudo tee shadowsocks.log

卸载shadowsocks

sudo ./shadowsocks.sh uninstall

配置文件路径:/etc/shadowsocks.json

命令

启动

/etc/init.d/shadowsocks start

停止

/etc/init.d/shadowsocks stop

重启

/etc/init.d/shadowsocks restart

状态

/etc/init.d/shadowsocks status

更多脚本

sudo wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh && sudo chmod +x ssr.sh && sudo bash ssr.sh
wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

注意事项:

  1. phthon3 的库变了,加.abc
  2. sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.a /usr/lib/x86_64-linux-gnu/liblibcrypto.a
  3. Doubi的安装教程在启动ssr时,使用的python,需要手动把启动脚本中python替换成python3,路径”/etc/init.d/ssr”

加速

cd /usr/src && sudo wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && sudo chmod +x tcp.sh && sudo ./tcp.sh

参考链接

https://iyideng.net/black-technology/cgfw/shadowsocksr-ssr-server-building-and-using-tutorial.html

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注