Ubuntu 代理设置与取消

2460阅读 0评论2023-02-22 黑马王子
分类:系统运维

终端命令行;

设置代理:

export http_proxy=

export https_proxy=


取消代理设置:

unset http_proxy

unset https_proxy


临时有效

1、添加代理

export http_proxy=

export https_proxy=

2、查看代理

env |grep -i proxy

3、清除代理

unset http_proxy

unset https_proxy



作者:萱儿妈
链接:
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
上一篇:shell脚本后台运行
下一篇:curl获取本机外网IP的几个命令