zhuangjie
ZhuangJie

sudo vim /etc/profile

 

加入如下几行(注意加入你的  ip:port )

#config for http proxy
export http_proxy=ip:port
export https_proxy=ip:port
export ftp_proxy=ip:port

no_proxy="127.0.0.1, localhost, 172.26.*, 172.25.6.66, 192.168.*"   #哪些不需要代理

 

#重新加载

source  /etc/profile

posted on 2022-02-09 10:34  zhuangjie  阅读(85)  评论(0)    收藏  举报