LinuxVPS CentOS Debian Ubuntu Shadowsocks 一鍵安裝腳本教程
公元2017年09月16日沒人鳥我喲打醬油看熱鬧的有:64 views
LinuxVPS CentOS Debian Ubuntu Shadowsocks 一鍵安裝腳本教程
話不羅嗦那麽多,其實大家心理都明白,搭建這個其實是傻瓜模式的,至於原理和細節我們也不用深究,本腳本適用系統支持:CentOS6+Debian7+Ubuntu 12+,內存要求:≥128M.關於本腳本:1、一鍵安裝 Shadowsocks-Python, ShadowsocksR, Shadowsocks-Go, Shadowsocks-libev 版(四選一)服務端;2、各版本的啟動腳本及配置文件名不再重合;3、每次運行可安裝一種版本;4、支持以多次運行來安裝多個版本,且各個版本可以共存(註意端口號需設成不同);5、若已安裝多個版本,則卸載時也需多次運行(每次卸載一種);6、Shadowsocks-Python 和 ShadowsocksR 安裝後不可同時啟動(因為本質上都屬 Python 版)
默認配置
服務器端口:自己設定(如不設定,默認為 8989)
密碼:自己設定(如不設定,默認為 teddysun.com)
加密方式:自己設定(如不設定,Python 和 libev 版默認為 aes-256-gcm,R 和 Go 版默認為 aes-256-cfb)
協議(protocol):自己設定(如不設定,默認為 origin)(僅限 ShadowsocksR 版)
混淆(obfs):自己設定(如不設定,默認為 plain)(僅限 ShadowsocksR 版)
備註:腳本默認創建單用戶配置文件,如需配置多用戶,請手動修改相應的配置文件後重啟即可.
客戶端下載
常規版 Windows 客戶端
https://github.com/shadowsocks/shadowsocks-windows/releases
ShadowsocksR 版 Windows 客戶端
https://github.com/shadowsocksr/shadowsocksr-csharp/releases
使用方法
使用root用戶登錄,運行以下命令:
1 2 3 | 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 2 3 4 5 6 7 8 | 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 Welcome to visit:https://teddysun.com/486.html Enjoy it! |
卸載方法
若已安裝多個版本,則卸載時也需多次運行(每次卸載一種)
使用root用戶登錄,運行以下命令:
1 | ./shadowsocks-all.sh uninstall |
啟動腳本
啟動腳本後面的參數含義,從左至右依次為:啟動,停止,重啟,查看狀態.
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
![]() |
![]() |
![]() |
New Comment
来看看,网站很不错哦
好久没点开周围人的博客链...
互换友情链接
申请一个友链证明我来过~
最近一直在忙好久没上博客...
个人博客做到这么强大也是...
留个脚印
新文章总是不能评论 :e...