菜单
开源

在 macOS 上安装 Grafana Alloy

您可以使用 Homebrew 在 macOS 上安装 Alloy。

注意

Homebrew 在 Intel 上的默认前缀是 /usr/local。Homebrew 在 Apple Silicon 上的默认前缀是 /opt/Homebrew

要在您的计算机上验证 Homebrew 的默认前缀,请打开终端窗口并输入 brew --prefix

开始之前

安装

要在 macOS 上安装 Alloy,请在终端窗口中运行以下命令。

  1. 添加 Grafana Homebrew tap

    shell
    brew tap grafana/grafana
  2. 安装 Alloy

    shell
    brew install grafana/grafana/alloy

升级

要在 macOS 上升级 Alloy,请在终端窗口中运行以下命令。

  1. 升级 Alloy

    shell
    brew upgrade grafana/grafana/alloy
  2. 重启 Alloy

    shell
    brew services restart alloy

卸载

要在 macOS 上卸载 Alloy,请在终端窗口中运行以下命令

shell
brew uninstall grafana/grafana/alloy

下一步