本腳本適用環(huán)境:系統(tǒng)支持:CentOS,Debian,Ubuntu內(nèi)存要求:≥128M日期:2016 年 08 月 13 日
關(guān)于本腳本:一鍵安裝 ShadowsocksR 服務(wù)端。請(qǐng)下載與之配套的客戶端程序來(lái)連接。(以下客戶端只有 Windows 客戶端和 Python 版客戶端可以使用 SSR 新特性,其他原版客戶端只能以兼容的方式連接 SSR 服務(wù)器)
默認(rèn)配置:服務(wù)器端口:自己設(shè)定(如不設(shè)定,默認(rèn)為 8989)客戶端端口:1080密碼:自己設(shè)定(如不設(shè)定,默認(rèn)為teddysun.com)
客戶端下載:Windows / OS XlinuxAndroid / iOSOpenWRT
使用方法:使用root用戶登錄,運(yùn)行以下命令:
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.shchmod +x shadowsocksR.sh./shadowsocksR.sh 2>&1 | tee shadowsocksR.log安裝完成后,腳本提示如下:
Congratulations, ShadowsocksR install completed!Server ip:your_server_ipServer Port:your_server_portPassWord:your_passwordLocal IP:127.0.0.1Local Port:1080PRotocol:originobfs:plainEncryption Method:aes-256-cfb
Welcome to visit:https://shadowsocks.be/9.htmlIf you want to change protocol & obfs, reference URL:https://github.com/breakwa11/shadowsocks-rss/wiki/Server-SetupEnjoy it!
卸載方法:使用 root 用戶登錄,運(yùn)行以下命令:
./shadowsocksR.sh uninstall安裝完成后即已后臺(tái)啟動(dòng) ShadowsocksR ,運(yùn)行:
/etc/init.d/shadowsocks status可以查看 ShadowsocksR 進(jìn)程是否已經(jīng)啟動(dòng)。本腳本安裝完成后,已將 ShadowsocksR 自動(dòng)加入開(kāi)機(jī)自啟動(dòng)。
使用命令:?jiǎn)?dòng):/etc/init.d/shadowsocks start停止:/etc/init.d/shadowsocks stop重啟:/etc/init.d/shadowsocks restart狀態(tài):/etc/init.d/shadowsocks status
配置文件路徑:/etc/shadowsocks.json日志文件路徑:/var/log/shadowsocks.log代碼安裝目錄:/usr/local/shadowsocks
多用戶配置 sample:
{"server":"0.0.0.0","server_ipv6": "[::]","local_address":"127.0.0.1","local_port":1080,"port_password":{ "8989":"password1", "8990":"password2", "8991":"password3"},"timeout":300,"method":"aes-256-cfb","protocol": "origin","protocol_param": "","obfs": "plain","obfs_param": "","redirect": "","dns_ipv6": false,"fast_open": false,"workers": 1}如果你想修改配置文件,請(qǐng)參考:https://github.com/breakwa11/shadowsocks-rss/wiki/Server-Setup
更新日志:2016 年 08 月 13 日:1、新增多用戶配置 sample。注意:如果你新增了端口,也要將該端口從防火墻(iptables 或 firewalld)中打開(kāi)。
2016 年 05 月 12 日:1、新增在 CentOS 下的防火墻規(guī)則設(shè)置。
參考鏈接:https://github.com/breakwa11/shadowsocks-rss
另增加:?jiǎn)稳伺渲?/p>
vi /etc/shadowsocks.json{ "server":"0.0.0.0", "server_ipv6":"::", "server_port":your_port, "local_address":"127.0.0.1", "local_port":1080, "password":"your_pwd", "timeout":120, "method":"aes-256-cfb", "protocol":"origin", //協(xié)議 "protocol_param":"", "obfs":"http_simple",//混淆模式 "obfs_param":"", "redirect":"", "dns_ipv6":false, "fast_open":false, "workers":1}
新聞熱點(diǎn)
疑難解答
圖片精選