下载脚本
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
注意事项:
- phthon3 的库变了,加.abc
- sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.a /usr/lib/x86_64-linux-gnu/liblibcrypto.a
- 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