CentOS下shadowsocks-go一鍵安裝腳本后端開發
導讀:后端開發后端開發關于本腳本:一鍵安裝 go 版的 shadowsocks 最新版本 1.1.3。據說 go 版本有 buff ,但是我沒看到。與 python 版不同的是,其客seo網站排名優化軟件個業網站建設公司。
關于本腳本: 一鍵網站建設教程安裝 go 版的 shadowsocks 最新版本 1.1.3。據說 go 版本有 buff ,但是我沒看到。與 python 版不同的是,其客戶端程序能使用多個服務端配置,但是本腳本安裝的是服務端。作者默認推薦 aes-128-cfb 加密,基于一致性的決定,腳本還是使用了 aes-256-cfb 加密方式。
默認配置: 服務器端口:8989 客戶端端口:1080 密碼:自己設定(如不設定,默認為teddysun.com)
客戶端下載: http://sourceforge.net/projects/shadowsocksgui/files/dist/
使用方法: 使用root用戶登錄,運行以下命令:
1 wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-go.sh 2 chmod +x shadowsocks-go.sh 3 ./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log安裝完成后,腳本提示如下:
Congratulations, shadowsocks-go install completed! Your Server IP:your_server_ip Your Server Port:8989 Your Password:your_password Your Local Port:1080 Your Encryption Method:aes-256-cfb Welcome to visit:http://teddysun.com/392.html Enjoy it!卸載方法: 使用 root 用戶登錄,運行以下命令:
./shadowsocks-go.sh uninstall其他事項: 客戶端配置的參考鏈接:http://teddysun.com/339.html
安裝完成后即已后臺啟動 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
多用戶多端口配置文件 sample(2015年01月08日): 配置文件路徑:/etc/shadowsocks/config.json
{ "port_password":{ "8989":"password0", "9001":"password1", "9002":"password2", "9003":"password3", "9004":"password4" }, "method":"aes-256-cfb", "timeout":600 }官方版本的 sample ,詳見這里。
特別說明: 1、關于 CentOS 的默認 iptables 防火墻規則 icmp-host-prohibited ,如果安裝之后發現已經啟動 shadowsocks,本地客戶端卻不能連接上,請檢查 iptables 是不是有如下的一條規則:
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited運行命令:
/etc/init.d/iptables status關鍵詞標簽: shadowsocks
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-28 ,文章CentOS下shadowsocks-go一鍵安裝腳本后端開發主要講述shadowsocks網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_11689.html
- 上一篇:「人物志」網站重新上線了建站文章
- 下一篇:Zdir 實用的目錄列表程序cms教程