Mac Iterm Terminal Proxy Setup

栏目: 编程工具 · 发布时间: 7年前

内容简介:由于某些原因,终端访问github被禁止,所以需要为终端配置代理,当然前提是您可以正常使用SS,直接进入主题:arrow_down:编辑配置文件 vim /usr/local/etc/proxychains.conf 在末尾的 [ProxyList] 下加入代理类型1.如果您在使用更新的Mac 需要关闭sip:重启电脑cmd+r 终端输入

由于某些原因,终端访问github被禁止,所以需要为终端配置代理,当然前提是您可以正常使用SS,直接进入主题:arrow_down:

安装

brew install proxychains-ng

配置

编辑配置文件 vim /usr/local/etc/proxychains.conf 在末尾的 [ProxyList] 下加入代理类型

socks5 127.0.0.1 1080 //注意端口匹配

使用

proxychains4 xxx

注意:warning:

1.如果您在使用更新的Mac 需要关闭sip:重启电脑cmd+r 终端输入 csrutil disable 然后 reboot

2.如果遇到 LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to xx:443,需要在终端输入

git config --global http.proxy 'socks5://127.0.0.1:1086'
git config --global https.proxy 'socks5://127.0.0.1:1086'
同样需要注意端口匹配

恢复默认:

git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy

3.如果遇到 pod repo update failed: Cannot do hard reset with paths 请使用:arrow_down:

proxychains4 -q pod repo update

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Algorithms for Image Processing and Computer Vision

Algorithms for Image Processing and Computer Vision

Parker, J. R. / 2010-12 / 687.00元

A cookbook of algorithms for common image processing applications Thanks to advances in computer hardware and software, algorithms have been developed that support sophisticated image processing with......一起来看看 《Algorithms for Image Processing and Computer Vision》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具