Grafana
- 运维
- 24天前
- 57热度
- 0评论
2.1 安装部署
-
操作如下
- 安装方式一
# 直接通过官网rpm包地址安装 yum install -y https://dl.grafana.com/enterprise/release/grafana-enterprise-10.3.3-1.x86_64.rpm
- 安装方式二
# 先下载rpm包 wget https://dl.grafana.com/enterprise/release/grafana-enterprise-10.3.3-1.x86_64.rpm # 再执行本地安装 yum localinstall grafana-enterprise-10.3.3-1.x86_64.rpm
- 启动Grafana
systemctl start grafana-server systemctl status grafana-server systemctl enable grafana-server
- nginx配置
server { listen 80; listen 443 ssl; server_name grafana.dev1.hkf56.com; ssl_certificate certs/dev1.hkf56.com.crt; ssl_certificate_key certs/dev1.hkf56.com.key; access_log logs/grafana_access.log main; error_log logs/grafana_error.log notice; location / { proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; proxy_set_header X-Forward-For $remote_addr; proxy_set_header X-Real-IP $remote_addr; } location /robots.txt { root /usr/local/nginx/html; index index.html; } }
- 登录,默认账号密码 admin/admin