Git Product home page Git Product logo

wiki's Introduction

一般的ss在终端设置代理:

export http_proxy=http://127.0.0.1:1080 export https_proxy=http://127.0.0.1:1080 这样是不起作用的。

原因是什么呢?

因为ss的代理是socks代理,而在goland之类的终端需要转成http才可以使用。 那么就需要一个工具进行转化,polipo。

安装过程如下:

brew install polipo

vim ~/.polipo

编辑文件内容如下:

socksParentProxy = "127.0.0.1:1080"

socksProxyType = "socks5"

proxyAddress = "127.0.0.1"

proxyPort = 8123

开机启动: ln -sfv /usr/local/opt/polipo/*.plist ~/Library/LaunchAgents/

加载: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.polipo.plist

Done,现在试试设置http代理,127.0.0.1 端口号 8123,看看能不能访问。 export http_proxy=http://127.0.0.1:8123 export https_proxy=http://127.0.0.1:8123

做个测试: curl -I www.google.com

wiki's People

Contributors

benzunyinzi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.