标签:shell

Mac 终端开启和关闭代理的方法

简单命令假如你的代理机是你的本机(127.0.0.1),代理的端口为 7070, 开启代理很简单,就是用 export 命令设置全局变量 http_proxy 和 https_proxy: export http_proxy="http://127.0.0.1:7070"export https_proxy="http://127.0.0.1:7070" 关