Mac instalar homebrew rizo de error: (7) No se pudo conectar a raw.githubusercontent.com puerto 443: Operación

Cuando la instalación homebrew, en general, entre directamente comandos directamente en el terminal:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


Pero este método cuando se reportaron problemas de red, como el título de este error.
Esta vez brew_install.rb descargar el archivo directamente, entonces el comando de consola para ejecutar el brew_install.rb rubí. Descargar este archivo:
enlace: https: //pan.baidu.com/s/1rVh8bY73NLc77cQYN_2HoQ Contraseña: n3si

 

Aquí Insertar imagen Descripción----------------

cambiar la fuente Homebrew

  1. 1. 替换brew.git:

  2. $ cd "$(brew --repo)"

  3. 中科大:

  4. $ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

  5. 清华:

  6. $ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

  7. 2. 替换homebrew-core.git:

  8. $ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

  9. 中科大:

  10. $ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

  11. 清华:

  12. $ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

  13. 3. 替换homebrew-bottles:

  14. 中科大:

  15. $ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile

  16. $ source ~/.bash_profile

  17. 清华:

  18. $ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile

  19. $ source ~/.bash_profile

  20. 4. 应用:

  21. $ brew update

Publicados 172 artículos originales · ganado elogios 45 · Vistas a 40000 +

Supongo que te gusta

Origin blog.csdn.net/fish_study_csdn/article/details/104179105
Recomendado
Clasificación