如何在Mac上启动Grafana?

时间:2017-06-25 23:05:22

标签: macos service installation grafana

我通过brew安装了Grafana:

brew install grafana

似乎安装位置在这里:

/usr/local/Cellar/grafana/4.3.2

如何立即启动Graphana服务? '服务' Mac上不存在命令。

试过:

brew services start grafana

并出现以下错误:

==> 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

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

2 个答案:

答案 0 :(得分:1)

我认为您可能需要安装Homebrew services

brew tap homebrew/services

否则,可执行文件可以直接在以下位置运行:

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

答案 1 :(得分:0)

在带有Brew的Mac上安装grafana。

  

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

     

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

$ 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
  

要首先使用家庭自制服务启动Grafana,请确保已安装家庭自制/服务。

$ brew tap homebrew/services
  

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

  $ brew services start grafana
  

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