Home Linux Sudo的同时保持http_proxy Https_proxy
Post
Cancel

Linux Sudo的同时保持http_proxy Https_proxy

refer to:
https://gist.github.com/hindol/4483374

1.  使用命令:sudo visudo   修改文件: /etc/sudoers

2. 保证添加这一句:

Defaults	env_keep+="http_proxy ftp_proxy all_proxy https_proxy no_proxy"

就可以了。

3. 验证:

sudo curl google.com

This post is licensed under CC BY 4.0 by the author.