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 2023-07-24 17:17  是谁啊?  阅读(52)  评论(0编辑  收藏  举报