- Grafana下载
#wget https://mirrors.huaweicloud.com/grafana/7.0.6/
- 若安装时报错:
warning: xxxxxxx Header V4 RSA/SHA1 Signature, key ID 24098cb6: NOKEY
error: Failed dependencies:
fontconfig is needed by grafana-xxx.x86_64
urw-fonts is needed by grafana-xxxx.x86_64
表示缺少依赖,则应先安装上依赖包,再进行安装grafana
yum install --downloadonly --downloaddir=./fontconfig
yum localinstall fontconfig-2.13.0-4.3.el7.x86_64.rpm
yum install --downloadonly --downloaddir=./urw-fonts
yum localinstall urw-fonts-2.4-16.el7.noarch.rpm
- 最后安装
[root@localhost ~]# rpm -ivh grafana-7.0.6-1.x86_64.rpm
警告:grafana-7.0.6-1.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 24098cb6: NOKEY
准备中... ################################# [100%]
正在升级/安装...
1:grafana-7.0.6-1 ################################# [100%]
### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable grafana-server.service
### You can start grafana-server by executing
sudo /bin/systemctl start grafana-server.service
POSTTRANS: Running script
- 启动
sudo /bin/systemctl start grafana-server.service
5、浏览器输入IP:3000进行登录
默认用户密码:admin/admin