当前位置: 首页> 房产> 市场 > it外包合同模板_企业微信开发公司_排名前十的大学_微信scrm系统

it外包合同模板_企业微信开发公司_排名前十的大学_微信scrm系统

时间:2025/7/14 6:41:41来源:https://blog.csdn.net/weixin_45014634/article/details/143327150 浏览次数:0次
it外包合同模板_企业微信开发公司_排名前十的大学_微信scrm系统

brew 下载过慢, 切换使用国内源

1.尝试brew install graphviz的时候,总是报错,或者跑到国外官网,下载太长时间
2. 更新国内的清华的源,中科大的源,结果brew update的时候要很久

最后用阿里的brew源, 发现可以很快更新

替换为阿里源

# 查看 brew.git 当前源
$ cd "$(brew --repo)" && git remote -v
origin    https://github.com/Homebrew/brew.git (fetch)
origin    https://github.com/Homebrew/brew.git (push)# 查看 homebrew-core.git 当前源
$ cd "$(brew --repo homebrew/core)" && git remote -v
origin    https://github.com/Homebrew/homebrew-core.git (fetch)
origin    https://github.com/Homebrew/homebrew-core.git (push)# 修改 brew.git 为阿里源
$ git -C "$(brew --repo)" remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git# 修改 homebrew-core.git 为阿里源
$ git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git# zsh 替换 brew bintray 镜像
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.zshrc
$ source ~/.zshrc# bash 替换 brew bintray 镜像
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile
$ source ~/.bash_profile# 刷新源
$ brew update

如果不想用了可以重置回去。

重置为官方源

# 重置 brew.git 为官方源
$ git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git# 重置 homebrew-core.git 为官方源
$ git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git# 重置 homebrew-cask.git 为官方源
$ git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask# zsh 注释掉 HOMEBREW_BOTTLE_DOMAIN 配置
$ vi ~/.zshrc
# export HOMEBREW_BOTTLE_DOMAIN=xxxxxxxxx# bash 注释掉 HOMEBREW_BOTTLE_DOMAIN 配置
$ vi ~/.bash_profile
# export HOMEBREW_BOTTLE_DOMAIN=xxxxxxxxx# 刷新源
$ brew update

设置方法参考:Mac 下 brew 切换为国内源

尝试安装, 发现失败:

Error: Failure while executing; `tar --extract --no-same-owner --file 。。。
解决方案:临时将brew的根域名换掉

export HOMEBREW_BOTTLE_DOMAIN=‘’
参考:OKLetsPEE:国内 Mac 安装 Homebrew 可能会跳的坑一览

关键字:it外包合同模板_企业微信开发公司_排名前十的大学_微信scrm系统

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: