Mac安装homebrew 创建安装目录1sudo mkdir -p /opt/homebrew 修改所有者,所属组1sudo chown -R $(whoami) /opt/homebrew 安装 homebrew1curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /opt/homebrew 修改所有者,所属组1 2025-03-17 Mac #homebrew