標籤:conf github 使用者設定檔 password 檔案名稱 服務 密碼 nbsp 記憶體
系統支援:CentOS 6+,Debian 7+,Ubuntu 12+
記憶體要求:≥128M
關於本指令碼
- 一鍵安裝 Shadowsocks-Python, ShadowsocksR, Shadowsocks-Go, Shadowsocks-libev 版(四選一)服務端;
- 各版本的啟動指令碼及設定檔名不再重合;
- 每次運行可安裝一種版本;
- 支援以多次運行來安裝多個版本,且各個版本可以共存(注意連接埠號碼需設成不同);
- 若已安裝多個版本,則卸載時也需多次運行(每次卸載一種);
- Shadowsocks-Python 和 ShadowsocksR 安裝後不可同時啟動(因為本質上都屬 Python 版)。
預設配置
伺服器連接埠:自己設定(如不設定,預設為 8989)
密碼:自己設定(如不設定,預設為 teddysun.com)
備忘:指令碼預設建立單使用者設定檔,如需配置多使用者,請手動修改相應的設定檔後重啟即可。
使用方法
使用root使用者登入,運行以下命令:
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.shchmod +x shadowsocks-all.sh./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log
安裝完成後,指令碼提示如下
Congratulations, your_shadowsocks_version install completed!Your Server IP :your_server_ipYour Server Port :your_server_portYour Password :your_passwordYour Encryption Method:aes-256-cfb Welcome to visit:https://teddysun.com/486.htmlEnjoy it!
指令碼百度云:http://pan.baidu.com/s/1c10jIuc 提取碼:398z
卸載山逗斯騷尅特的方法: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
centos 6+安裝山逗斯騷尅特(本文內容來自都比更具帝)