图形展示利器。

参考文档:

https://grafana.com/docs/grafana/latest/installation/rpm/


模拟环境:CentOS7(192.168.1.96)


一、安装开源的grafana.

1.创建安装容器

# vi /etc/yum.repos.d/grafana.repo

添加内容:

[grafana]

name=grafana

baseurl=https://packages.grafana.com/oss/rpm

repo_gpgcheck=1

enabled=1

gpgcheck=1

gpgkey=https://packages.grafana.com/gpg.key

sslverify=1

sslcacert=/etc/pki/tls/certs/ca-bundle.crt

Install Grafana with one of the following commands:


2.安装

 # yum install grafana -y


3.启动grafana并设置开机启动。

# systemctl daemon-reload

# systemctl start grafana-server

# systemctl enable grafana-server

验证状态:

# systemctl status grafana-server


4、防火墙开放访问端口

# firewall-cmd --permanent --add-port 3000/tcp

# firewall-cmd --reload


5.验证

http://192.168.1.96:3000/ 

账户:admin 密码:admin