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,即可使用。
点个广告:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架