
1、armbian設置代理:
export http_proxy=socks5://proxy_ip:proxy_port
export https_proxy=socks5://proxy_ip:proxy_port
export http_proxy=http://proxy_ip:proxy_port
export https_proxy=http://proxy_ip:proxy_port
2、確認環境變數已經設定成功,可以使用 echo
命令檢查:
echo $http_proxy
echo $https_proxy
3、若要手動重置這些環境變數,可以在終端中執行以下命令來清除它們的設定:
unset http_proxy
unset https_proxy
或者直接設置它們為空:
export http_proxy= export https_proxy= 4、SSH連接斷開,或者重啓後,代理設置被清空。
转载请注明:刘太监的私藏 » armbian設置代理