启动了Grafana,但是在localhost:3000上没有日志或服务器?

我正在尝试按照https://grafana.com/docs/installation/mac/上的说明在Mac上本地安装Grafana。我使用brew install grafana安装了Grafana,然后使用brew services start grafana启动了它:

> brew services list | grep grafana
grafana    started kurt /Users/kurt/library/LaunchAgents/homebrew.mxcl.grafana.plist

但是,我在localhost:3000上没有看到任何Grafana管理页面:

> curl http://localhost:3000/
curl: (7) Failed to connect to localhost port 3000: Connection refused

此外,我在/usr/local/var/log/grafana/grafana.log上看不到任何日志文件:

> tail -f /usr/local/var/log/grafana/grafana.log
tail: /usr/local/var/log/grafana/grafana.log: No such file or directory

(据说)正在运行,我如何与Grafana交互?

lijiayanmy 回答:启动了Grafana,但是在localhost:3000上没有日志或服务器?

我最终按照Docker(https://grafana.com/docs/installation/docker/)的说明进行安装:

> docker run \
                                                -d \
                                                -p 3000:3000 \
                                                --name=grafana \
                                                -e "GF_SERVER_ROOT_URL=http://grafana.server.name" \
                                                -e "GF_SECURITY_ADMIN_PASSWORD=secret" \
                                                grafana/grafana

,现在可以看到一个登录页面(我使用默认用户名admin和指定密码secret登录):

enter image description here

我仍然不知道为什么MacOS安装无法正常工作吗?

本文链接:https://www.f2er.com/3165066.html

大家都在问