随笔 - 280  文章 - 7  评论 - 853  阅读 - 104万 

1.使用homebrew安装privoxy,但安装时报错:

https://juejin.cn/post/6961616069941264415

homebrew 执行 brew update 报错

Error: homebrew-core is a shallow clone. To `brew update`, first run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow This command may take a few minutes to run due to the large size of the repository. This restriction has been made on GitHub's request because updating shallow clones is an extremely expensive operation due to the tree layout and traffic of Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you automatically to avoid repeatedly performing an expensive unshallow operation in CI systems (which should instead be fixed to not use shallow clones). Sorry for the inconvenience!

  • 解决方法:直接干掉原homebrew-core文件,重新brew update
  • rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
  • brew update
 
2.安装privoxy

安装配置

brew install privoxy

vim /usr/local/etc/privoxy/config

listen-address 0.0.0.0:8118
forward-socks5 / 127.0.0.1:18888 .

注意:18888为本地的socks5的代理端口(有大用,可以使用ssh隧道开启)

启动 privoxy

sudo /usr/local/sbin/privoxy /usr/local/etc/privoxy/config

 

手机上设置代理端口为 ip:8118,即可使用。



posted on   是谁啊?  阅读(65)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
点击右上角即可分享
微信分享提示