當linux 代理軟體設定好后,我們需要設定命令列代理的連接方式,這樣在命令列中的軟體才能使用:
設定http/https代理:
export https_proxy="127.0.0.1:12333"
export http_proxy="127.0.0.1:12333"
如果有密碼:
export http_proxy_user=test
export http_proxy_pass=test
測驗代理http/https:
curl http://www.google.com
curl https://www.google.com
當然我們也可以設定 proxychains-ng 進行設定代理:(推薦)
apt install proxychains4 或者下載倉庫代碼進行編譯;
vim /etc/proxychains4.conf 修改組態檔配置 socks5 127.0.0.1 1080
測驗:proxychains4 curl www.google.com
這樣支持tcp協議的軟體也能進行使用了;
# 此種方案,適合使用 aaex 代理,electron-ssr 和 git 配合使用;用來使用github進行輔助開發;
保持更新,轉載請注明出處;更多內容請關注 cnblogs.com/xuyaowen;
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/139896.html
標籤:Linux
上一篇:Linux_simpl shell-利用Shell腳本for回圈輸出系統中的用戶及其Shell
下一篇:Linux系統基礎認知
