[Mac] Error: Failure while executing; `/opt/homebrew/bin/brew tap homebrew/services` exited with 1.

遇到一个坑,又莫名其妙的自己解决了。但我还是要记录一下,之后有机会再来填坑吧。

 

启动redis 服务不成功,遇到下面报错:

(base) umi@UmideMac-mini ~ % brew services srart redis
==> Tapping homebrew/services
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-services'...
fatal: unable to access 'https://github.com/Homebrew/homebrew-services/': Failed to connect to github.com port 443 after 75004 ms: Operation timed out
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-services /opt/homebrew/Library/Taps/homebrew/homebrew-services --origin=origin --template=` exited with 128.
Error: Failure while executing; `/opt/homebrew/bin/brew tap homebrew/services` exited with 1.

查了一圈回来说是,homebrew的问题和网络的问题,大致也就这两个方面了

于是我刷新了一下我的科学上网工具,

然后多试了几下,就好了:

[Mac] Error: Failure while executing; `/opt/homebrew/bin/brew tap homebrew/services` exited with 1._第1张图片

之前也遇到过类似的git 不了的问题, 到底是为什么呢?

望路过的大佬指点迷津!多谢!

你可能感兴趣的:(macos)