终端代理以及git加速
-
需求
在终端clone代码下载墙外的文件,需要加速或者代理
-
终端代理(linux)
- 配置privoxy
#安装privoxy(见网络) #配置config,在/usr/local/etc/privoxy/config 加上如下内容 listen-address 0.0.0.0:8118 forward-socks5 / localhost:1080 .
-
终端启动代理
在.bashrc/.bash_profile上添加如下内容
startvpn(){ sudo /usr/local/sbin/privoxy /usr/local/etc/privoxy/config export http_proxy='http://127.0.0.1:8118'