本文基于

https://www.cnblogs.com/dabaomo/p/9634727.html

声明

坚决拥护党的领导,本文章所用技术乃出于工作需要,敬请谅解。

正文

可以先过去快速浏览一遍再回头看本文章。上文有一处配置需要注意和容易迷惑的地方。在这里踩坑花了一下午。。。

即:要注意自己使用的Shadowsocks或其他代理(vTworay等)端口为是否为1080。如果不是,需要修改为相关端口。否则在进行命令行操作时,会提示连接到127.0.0.1:1080失败 。

 Failed to connect to 127.0.0.1 port 1080: Connection refused

查看Shadowsocks代理端口方法如下:



多次失败截图:





代理后看到的希望:



成功截图:

补充

vTworay更好用

在发布sdk到cocoapods时,用Shadowsocks代理时会出现YYModel更新失败,但是用vTworay就能够成功!

socks5原理

https://baike.baidu.com/item/socks5

https://zhuanlan.zhihu.com/p/28645864

代理扩展用法

  • If you do not want to set the proxy as global config, try ALL_PROXY= e.g.:
ALL_PROXY=socks5://127.0.0.1:xx git clone https://github.com/some/one.git
  • (Just a little reminder) If you want the hostname also be resolved by the proxy (that means passing everything through the proxy), especially when you are cloning a gist, you can use the following setting (the key is that it uses socks5h instead of socks5):
git config --global http.proxy socks5h://127.0.0.1:xx

https://stackoverflow.com/questions/15227130/using-a-socks-proxy-with-git-for-the-http-transport#

最新文章

  1. 小谈KVC中KeyPath的集合运算符
  2. java 解决汉诺塔问题
  3. Eclipse报错:Setting property 'source' to 'org.eclipse.jst.jee.server:test1' did no
  4. ORA-00931: missing identifier ORA-06512: at "SYS.DBMS_UTILITY"
  5. samba服务搭建及管理
  6. 《Java核心技术卷二》笔记(二)文件操作和内存映射文件
  7. Partitioning
  8. java 泛型通配符 extends, super
  9. EXT.NET学习笔记(一) 下载配置使用
  10. thinkphp学习笔记8—命名空间
  11. C/C++ kubetu
  12. 为什么可以通过URL来调起APP - URL Scheme和Intent
  13. [Swift]LeetCode126. 单词接龙 II | Word Ladder II
  14. Linux内存管理 (22)内存检测技术(slub_debug/kmemleak/kasan)【转】
  15. 【Mybatis】【3】mybatis Example Criteria like 模糊查询
  16. CSS那些事!这个篇幅是我特意开的,不是因为帮助小菜之类的,而是在多人的团队配合中各种命名冲突的规范让人蛋疼
  17. MySQL -- 全文检索
  18. Java的进阶之道
  19. Selenium自动化测试之启动浏览器
  20. endnote的安装和使用必备的几个步骤(简单有效整理版)

热门文章

  1. nginx篇高级用法之基于TCP/UDP的四层调度
  2. visit:组合数学,ex_Lucas
  3. 手把手带你实战下Spring的七种事务传播行为
  4. Spring mvc之源码 handlerMapping和handlerAdapter分析
  5. Tomcat+nginx+Keepalived部署实现集群
  6. Unity入门--实用知识
  7. iOS--通过runtime完成归档,反归档
  8. Comet OJ - Contest #10 C题 鱼跃龙门
  9. Python3.7.1学习(六)RabbitMQ在Windows环境下的安装
  10. Python爬虫的开始——requests库建立请求