# Grafana 安装
# 打开官网下载链接
# centos
安装
sudo yum install -y https://dl.grafana.com/enterprise/release/grafana-enterprise-11.4.0-1.x86_64.rpm
# 启动服务
# 启动服务
sudo systemctl start grafana-server
# 设置开机自启
sudo systemctl enable grafana-server
# 查看服务状态
# systemctl status grafana-server.service
● grafana-server.service - Grafana instance
Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; vendor preset: disabled)
Active: active (running) since 五 2025-01-10 09:31:13 CST; 24h ago
Docs: http://docs.grafana.org
Main PID: 22957 (grafana)
Tasks: 14
Memory: 71.1M
CGroup: /system.slice/grafana-server.service
└─22957 /usr/share/grafana/bin/grafana server --config=/etc/grafana/grafana.ini --pidfile=/var/run/grafana/grafana-server.pid --packaging=rpm cfg:default.paths.logs=/var/log/grafana cfg:default.paths.data=/v...
1月 11 09:41:14 78.174 grafana[22957]: logger=plugins.update.checker t=2025-01-11T09:41:14.642553206+08:00 level=info msg="Update check succeeded" duration=312.872818ms
1月 11 09:51:14 78.174 grafana[22957]: logger=cleanup t=2025-01-11T09:51:14.000627833+08:00 level=info msg="Completed cleanup jobs" duration=1.471875ms
1月 11 09:51:14 78.174 grafana[22957]: logger=grafana.update.checker t=2025-01-11T09:51:14.568002455+08:00 level=info msg="Update check succeeded" duration=263.799707ms
1月 11 09:51:14 78.174 grafana[22957]: logger=plugins.update.checker t=2025-01-11T09:51:14.665380195+08:00 level=info msg="Update check succeeded" duration=335.201599ms
1月 11 10:01:14 78.174 grafana[22957]: logger=cleanup t=2025-01-11T10:01:14.000071983+08:00 level=info msg="Completed cleanup jobs" duration=1.580232ms
1月 11 10:01:14 78.174 grafana[22957]: logger=grafana.update.checker t=2025-01-11T10:01:14.607055233+08:00 level=info msg="Update check succeeded" duration=302.638381ms
1月 11 10:01:14 78.174 grafana[22957]: logger=plugins.update.checker t=2025-01-11T10:01:14.629948504+08:00 level=info msg="Update check succeeded" duration=300.641279ms
1月 11 10:11:14 78.174 grafana[22957]: logger=cleanup t=2025-01-11T10:11:13.999824857+08:00 level=info msg="Completed cleanup jobs" duration=1.300565ms
1月 11 10:11:14 78.174 grafana[22957]: logger=plugins.update.checker t=2025-01-11T10:11:14.63455366+08:00 level=info msg="Update check succeeded" duration=304.538392ms
1月 11 10:11:44 78.174 grafana[22957]: logger=grafana.update.checker t=2025-01-11T10:11:44.304699229+08:00 level=error msg="Update check failed" error="failed to get latest.json repo from github.com: Get \"https://raw...
Hint: Some lines were ellipsized, use -l to show in full.
# 访问
浏览器输入http://localhost:3000
即可访问grafana
默认用户名和密码为admin/admin