在 macOS 上安装 Grafana Alloy
您可以使用 Homebrew 在 macOS 上安装 Alloy。
注意
Homebrew 在 Intel 上的默认前缀是
/usr/local
。Homebrew 在 Apple Silicon 上的默认前缀是/opt/Homebrew
。要在您的计算机上验证 Homebrew 的默认前缀,请打开终端窗口并输入
brew --prefix
。
开始之前
- 在您的计算机上安装 Homebrew。
安装
要在 macOS 上安装 Alloy,请在终端窗口中运行以下命令。
添加 Grafana Homebrew tap
brew tap grafana/grafana
安装 Alloy
brew install grafana/grafana/alloy
升级
要在 macOS 上升级 Alloy,请在终端窗口中运行以下命令。
升级 Alloy
brew upgrade grafana/grafana/alloy
重启 Alloy
brew services restart alloy
卸载
要在 macOS 上卸载 Alloy,请在终端窗口中运行以下命令
brew uninstall grafana/grafana/alloy