linux设置全局代理

  • vim /etc/profile
http_proxy=http://127.0.0.1:9666 #代理程序地址
https_proxy=http://127.0.0.1:9666
ftp_proxy=http://127.0.0.1:9666
export http_proxy
export ftp_proxy
export https_proxy

在这里插入图片描述

  • source /etc/profile
  • 这样http,https,ftp都走代理了

posted on 2019-11-25 11:05  愤怒的苹果ext  阅读(266)  评论(0编辑  收藏  举报

导航