# 下载grafana并安装 ## 1.1 下载 官网下载较慢,可以从以下镜像下载 [https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm/Packages/](https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm/Packages/) ## 1.2 安装 ``` [yz@bogon grafana]$ pwd /home/yz/grafana [yz@bogon grafana]$ ll -rw-rw-r-- 1 yz yz 82628962 12月 3 15:39 grafana-10.3.3-1.x86_64.rpm [yz@bogon grafana]$ sudo yum install grafana-10.3.3-1.x86_64.rpm ``` # 2. 开启服务 ## 2.1 开启服务 ``` systemctl start grafana-server ``` ## 2.2 查看端口验证 ``` [yz@bogon grafana]$ netstat -nlpt|grep 3000 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp6 0 0 :::3000 :::* LISTEN - ``` # 3. 访问 ## 3.1 打开浏览器输入 IP:3000 访问 例如: 192.168.153.183:3000 ## 3.2 访问成功之后输入默认的用户名和密码登录 默认的用户名和密码均为:admin