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
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