shadowsocksr 配置
- 2020 年 2 月 17 日
- 筆記
参考
https://www.zfl9.com/ssr.html
获取脚本
wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh chmod +x shadowsocks-all.sh
安装
按提示操作,设置
Protocol : auth_chain_a obfs : plain Encryption Method: none
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log # 安装成功后,脚本提示如下: Congratulations, your_shadowsocks_version install completed! Your Server IP :your_server_ip Your Server Port :your_server_port Your Password :your_password Your Encryption Method:your_encryption_method Your QR Code: (For Shadowsocks Windows, OSX, Android and iOS clients) ss://your_encryption_method:your_password@your_server_ip:your_server_port Your QR Code has been saved as a PNG file path: your_path.png Welcome to visit:https://teddysun.com/486.html Enjoy it!
卸载
# 若安装了多个版本,请运行多次(每次卸载一个) ./shadowsocks-all.sh uninstall
管理 SSR
# 启动、关闭、重启、状态 ## Shadowsocks-Python /etc/init.d/shadowsocks-python start|stop|restart|status ## ShadowsocksR /etc/init.d/shadowsocks-r start|stop|restart|status ## Shadowsocks-Go /etc/init.d/shadowsocks-go start|stop|restart|status ## Shadowsocks-libev /etc/init.d/shadowsocks-libev start|stop|restart|status # 各版本默认配置文件 ## Shadowsocks-Python /etc/shadowsocks-python/config.json ## ShadowsocksR /etc/shadowsocks-r/config.json ## Shadowsocks-Go /etc/shadowsocks-go/config.json ## Shadowsocks-libev /etc/shadowsocks-libev/config.json