设置代理
export http_proxy=http://127.0.0.1:8090
让sudo支持代理
修改/etc/sudoers,添加:
Defaults env_keep="http_proxy https_proxy ftp_proxy"
取消代理
unset http_proxy
export http_proxy=http://127.0.0.1:8090
修改/etc/sudoers,添加:
Defaults env_keep="http_proxy https_proxy ftp_proxy"
unset http_proxy