$ export http_proxy=socks5://127.0.0.1:1080 # 配置http访问的
$ export https_proxy=socks5://127.0.0.1:1080 # 配置https
$ export all_proxy=socks5://127.0.0.1:1080 # 配置http和https访问
![](https://www.icode9.com/i/l/?n=20&i=blog/982351/202008/982351-20200829142901789-2103437164.png)
![](https://www.icode9.com/i/l/?n=20&i=blog/982351/202008/982351-20200829142728437-113027910.png)
标签:127.0,http,1080,0.1,代理,socks5,mac,终端,https
来源: https://www.cnblogs.com/lanshengzhong/p/13582139.html