终端命令行;
设置代理:
export http_proxy=http://172.16.2.16:3199
export https_proxy=http://172.16.2.16:3199
取消代理设置:
unset http_proxy
unset https_proxy
临时有效
1、添加代理
export http_proxy=http://proxyAddress:port
export https_proxy=http://proxyAddress:port
2、查看代理
env |grep -i proxy
3、清除代理
unset http_proxy
unset https_proxy
原文链接:https://blog.csdn.net/zhangh571354026/article/details/123851518