mac 下终端代理方案
admin
2023-07-31 01:46:36
0
brew install proxychains-ng
echo \"\\nsocks5  127.0.0.1 1088\" >> /usr/local/etc/proxychains.conf

sock5 server 的安装 自己搜索 shadowsocks server 安装

mac 下安装 shadowsocks-libev 当客户端 监听本地端口127.0.0.1:1088

现在在每个命令执行前加上proxychains4 就是会走上面配置的代理了

比如:现在使用 pip

proxychains4 ./bin/pip install django-jython==1.8.0b3
[proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.11/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] DLL init: proxychains-ng 4.11
Collecting django-jython==1.8.0b3
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] Strict chain  ...  127.0.0.1:1088  ...  pypi.python.org:443  ...  OK
/Users/timgerk/alibaba/jxcode/Lib/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:310: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  warnings.warn(
/Users/timgerk/alibaba/jxcode/Lib/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:115: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  warnings.warn(
  Using cached django-jython-1.8.0b3.tar.gz
[proxychains] DLL init: proxychains-ng 4.11
Collecting django-jython==1.8.0b3
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] Strict chain  ...  127.0.0.1:1088  ...  pypi.python.org:443  ...  OK
/Users/timgerk/alibaba/jxcode/Lib/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:310: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  warnings.warn(
/Users/timgerk/alibaba/jxcode/Lib/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:115: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  warnings.warn(
  Using cached django-jython-1.8.0b3.tar.gz
[proxychains] DLL init: proxychains-ng 4.11
Collecting Django<1.9.0,>=1.8.0 (from django-jython==1.8.0b3)
  Downloading Django-1.8.13-py2.py3-none-any.whl (6.2MB)
    100% |████████████████████████████████| 6.2MB 92kB/s
Building wheels for collected packages: django-jython
[proxychains] DLL init: proxychains-ng 4.11
  Running setup.py bdist_wheel for django-jython ... done
  Stored in directory: /Users/timgerk/.cache/pip/wheels/5e/c7/be/02763898b0bedf9a388ac5fdd14c94c9e63e6ba0cd34189287
Successfully built django-jython
Installing collected packages: Django, django-jython
Successfully installed Django-1.8.13 django-jython-1.8.0b3
[proxychains] DLL init: proxychains-ng 4.11

相关内容

热门资讯

Mobi、epub格式电子书如... 在wps里全局设置里有一个文件关联,打开,勾选电子书文件选项就可以了。
定时清理删除C:\Progra... C:\Program Files (x86)下面很多scoped_dir开头的文件夹 写个批处理 定...
scoped_dir32_70... 一台虚拟机C盘总是莫名奇妙的空间用完,导致很多软件没法再运行。经过仔细检查发现是C:\Program...
500 行 Python 代码... 语法分析器描述了一个句子的语法结构,用来帮助其他的应用进行推理。自然语言引入了很多意外的歧义,以我们...
小程序支付时提示:appid和... [Q]小程序支付时提示:appid和mch_id不匹配 [A]小程序和微信支付没有进行关联,访问“小...
pycparser 是一个用... `pycparser` 是一个用 Python 编写的 C 语言解析器。它可以用来解析 C 代码并构...
微信小程序使用slider实现... 众所周知哈,微信小程序里面的音频播放是没有进度条的,但最近有个项目呢,客户要求音频要有进度条控制,所...
65536是2的几次方 计算2... 65536是2的16次方:65536=2⁶ 65536是256的2次方:65536=256 6553...
Apache Doris 2.... 亲爱的社区小伙伴们,我们很高兴地向大家宣布,Apache Doris 2.0.0 版本已于...
项目管理和工程管理的区别 项目管理 项目管理,顾名思义就是专注于开发和完成项目的管理,以实现目标并满足成功标准和项目要求。 工...