Shadowsocks一鍵安裝腳本

本腳本適用環境:
系統支持:CentOS,Debian,Ubuntu

內存要求:≥64M

默認配置:
服務器端口:自己設定(如不設定,默認從 9000-19999 之間隨機生成)

密碼:自己設定(如不設定,默認爲 teddysun.com)

加密方式:自己設定(如不設定,默認爲 aes-256-cfb)

使用方法:
使用root用戶登錄,運行以下命令:

wget --no-check-certificate -O shadowsocks-go.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-go.sh
chmod +x shadowsocks-go.sh
./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log

安裝完成後,腳本提示如下:

Congratulations, Shadowsocks-go server install completed!
Your Server IP        :服務器IP
Your Server Port      :端口
Your Password         :密碼
Your Encryption Method:加密方式

Welcome to visit:https://teddysun.com/392.html
Enjoy it!

卸載方法:
使用 root 用戶登錄,運行以下命令:

./shadowsocks-go.sh uninstall

安裝完成後即已後臺啓動 Shadowsocks-go ,運行:

/etc/init.d/shadowsocks status

可以查看 Shadowsocks-go 進程是否已經啓動。
本腳本安裝完成後,已將 shadowsocks-go 加入開機自啓動。

使用命令:
啓動:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重啓:/etc/init.d/shadowsocks restart
狀態:/etc/init.d/shadowsocks status

多用戶多端口配置文件示例:
配置文件路徑:/etc/shadowsocks/config.json

{
    "port_password":{
         "8989":"password0",
         "9001":"password1",
         "9002":"password2",
         "9003":"password3",
         "9004":"password4"
    },
    "method":加密方式,
    "timeout":600
}
參考鏈接:

https://github.com/shadowsocks/shadowsocks-go

Shadowsocks for Windows 客戶端下載:

https://github.com/shadowsocks/shadowsocks-windows/releases

鏈接:https://pan.baidu.com/s/1mjlZsTE 密碼:rydh

轉載:秋水逸冰 » Shadowsocks-go一鍵安裝腳本

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章