背景
mac 安装包时,系统提供了自带的包管理工具HomeBrew ,于是使用brew 进行安装,过程中遇到Failed to connect to raw.githubusercontent.com port 443,或者也会有github 443 连不上问题,brew 访问raw.githubusercontent.com,github 会出现一定的不稳定因素;
解决流程
- 找到一个国内的工具, 地址:https://gitee.com/cunkai/HomebrewCN
- 先使用brew uninstal 进行卸载;
- 执行brew 安装命令 /bin/zsh -c "$(curl -fsSL --insecure
https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)",安装成功 - 更新brew brew update
- 查看config 镜像配置等 ,brew config
- 针对访问githubusercontent,github 不稳定的因素找到了一些host 配置:
85.199.108.154 github.githubassets.com
140.82.113.22 central.github.com
185.199.108.133 desktop.githubusercontent.com
185.199.108.153 assets-cdn.github.com
185.199.108.133 camo.githubusercontent.com
185.199.108.133 github.map.fastly.net
199.232.69.194 github.global.ssl.fastly.net
140.82.114.3 gist.github.com
140.82.114.5 api.github.com
185.199.108.133 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
185.199.108.133 avatars.githubusercontent.com
140.82.113.9 codeload.github.com
52.216.160.43 github-cloud.s3.amazonaws.com
52.216.179.211 github-com.s3.amazonaws.com
52.217.69.236 github-production-release-asset-2e65be.s3.amazonaws.com
52.216.185.107 github-production-user-asset-6210df.s3.amazonaws.com
52.217.13.92 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.133 media.githubusercontent.com - 最后一步,使用 brew install xx 进行包的安装,折腾了好久的环境终于处理了;
网友评论