设置代理
export http_proxy="http://127.0.0.1:10809"
export https_proxy="http://127.0.0.1:10809"
export ftp_proxy="http://127.0.0.1:10809"
export no_proxy="localhost,127.0.0.1,::1"
举例
export http_proxy="http://192.168.158.1:10809"
export https_proxy="http://192.168.158.1:10809"
export ftp_proxy="http://192.168.158.1:10809"
export no_proxy="localhost,127.0.0.1,::1,192.168.158.1"
取消代理
unset http_proxy
unset https_proxy
unset ftp_proxy
unset no_proxy