export http代理

設置代理

export http_proxy=http://127.0.0.1:49776
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export rsync_proxy=$http_proxy
export no_proxy="localhost,127.0.0.1"

取消代理

unset  http_proxy
unset https_proxy
unset ftp_proxy
unset rsync_proxy

輸出當前代理

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