Centos 安装 Grafana
前提条件: Centos 二进制安装 Prometheus
1.下载安装
下载地址:https://grafana.com/grafana/download?pg=get&plcmt=selfmanaged-box1-cta1&edition=oss
wget https://dl.grafana.com/oss/release/grafana-9.3.2-1.x86_64.rpm sudo yum install grafana-9.3.2-1.x86_64.rpm
2.开机自启并启动
systemctl start grafana-server
systemctl enable grafana-server
3.防火墙开放端口
firewall-cmd --zone=public --add-port=3000/tcp --permanent //添加端口 firewall-cmd --reload //重载 firewall-cmd --zone=public --query-port=3000/tcp //查询端口开放是否成功
4.初始化
访问 http:ip:3000 初始化账号和密码均为 admin