Fork me on GitHub

Linux设置代理

Linux临时设置代理

命令行设置临时代理

#Linux设置代理,https使用的也是http端口
export http_proxy="http://IP:端口"
export https_proxy="http://IP:端口"

# 查看代理
env | grep -i proxy

如上的代理设置和以下界面设置功能相同
image

取消代理

unset http_proxy
unset https_proxy

image

posted @ 2025-04-08 22:14  秋夜雨巷  阅读(183)  评论(0)    收藏  举报