如何在 Mac 上启动 Grafana?

cik*_*mir 7 macos installation service grafana

我通过brew安装了Grafana:

brew install grafana
Run Code Online (Sandbox Code Playgroud)

看来安装位置在这里:

/usr/local/Cellar/grafana/4.3.2
Run Code Online (Sandbox Code Playgroud)

现在如何启动 Graphana 服务?Mac 上不存在“service”命令。

尝试过:

brew services start grafana
Run Code Online (Sandbox Code Playgroud)

并得到以下错误:

==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
fatal: unable to access 'https://github.com/Homebrew/homebrew-services/': The requested URL returned error: 403
Error: Failure while executing: git clone https://github.com/Homebrew/homebrew-services /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services --depth=1
Error: Failure while executing: /usr/local/bin/brew tap homebrew/services
Run Code Online (Sandbox Code Playgroud)

在 Mac 上启动 Grafana 的正确方法是什么?

小智 5

使用 Brew 在 Mac 上安装 grafana。

从此链接安装并下载 Docker - https://docs.docker.com/v17.12/docker-for-mac/install/#download-docker-for-mac

您可以启动您的终端。安装最新的稳定版:

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
$ brew install grafana
$ brew update
$ brew install grafana
Run Code Online (Sandbox Code Playgroud)

要使用自制程序服务启动 Grafana,首先确保安装了自制程序/服务。

$ brew tap homebrew/services
Run Code Online (Sandbox Code Playgroud)

然后使用以下命令启动 Grafana:

  $ brew services start grafana
Run Code Online (Sandbox Code Playgroud)

默认登录名和密码 admin/ admin - http://localhost:3000


Dan*_*Lee 1

我认为您可能需要安装Homebrew 服务

brew tap homebrew/services

否则可执行文件可以直接运行在:

/usr/local/Cellar/grafana/4.3.2/bin/grafana-server