1. 终端输入

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

      如果提示:
      curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation

    2. 浏览器打开:(如不能访问,请用挂vpn)

      1. https://raw.githubusercontent.com/Homebrew/install/master/install

      显示如下:
      image.png

    3. 复制网页中代码,保存为:brew_install.rb文件

    4. 终端输入:

      1. ruby brew_install.rb
    5. 完成