linux/Mysql/系统运维

【linux命令】设置代理和取消代理(http_proxy )

daimafengzi · 12月15日 · 2022年 · · 本文共213个字 · 预计阅读1分钟6410次已读

临时设置代理:

export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

临时取消代理:

unset http_proxy
unset https_proxy
unset all_proxy

如果想要使代理服务器永久生效,可以修改 /etc/profile文件 ,在 profile 中添加或者删除。

0 条回应
Copyright © 2022-2024 LuoWeiHua
| 耗时 0.396 秒 | 查询 58 次 | 内存 4.14 MB |