运维学习之部署Grafana

sudo nohup wget https://dl.grafana.com/oss/release/grafana-10.1.1.linux-amd64.tar.gz &后台下载压缩包,然后按一下回车键。

ps -aux | grep 15358发现有两条记录,就是还在下载中。

ps -aux | grep 15358发现有一条记录,并且tail -n 10 nohup.out发现有'grafana-10.1.1.linux-amd64.tar.gz' saved [109275125/109275125]这样的字样,就是下载完成。

tar -zxf grafana-10.1.1.linux-amd64.tar.gz -C /opt进行解压。

/opt/grafana-10.1.1/bin/grafana-server启动,发现报错如下:

bash 复制代码
Deprecation warning: The standalone 'grafana-server' program is deprecated and will be removed in the future. Please update all uses of 'grafana-server' to 'grafana server'
Grafana server is running with elevated privileges. This is not recommended
Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath

/opt/grafana-10.1.1/bin/grafana server --config="/opt/grafana-10.1.1/conf/defaults.ini" --homepath=/opt/grafana-10.1.1就可以成功解决上边问题启动起来。

在自己浏览器里边输入服务器ip:3000,就可以进入到下边的页面:

账户:admin,密码:admin,然后点击"Log in"按钮。

设置新密码。

点击"三"。

选择"Dashboards"。

点击"New",然后点击"Import"。

输入1860,然后点击Load

先点击输入框,然后点击"Configure a new data source"

选择Promethus

然后回到"Dashboards"页面,选择数据源。

点击"Import"

最后结果如下:

此文章为9月Day 11学习笔记,内容来源于极客时间《运维监控系统实战笔记》

相关推荐
小白电脑技术几秒前
节点小宝「中心节点」:一个设备,解锁全家远程访问
运维·服务器
gaize12137 分钟前
主机与服务器的区别是什么?我能改造主机为服务器吗?
运维·服务器
星火开发设计1 小时前
二叉树详解及C++实现
java·数据结构·c++·学习·二叉树·知识·期末考试
xiaoxiaoxiaolll1 小时前
《Light: Science & Applications》超表面偏振态与偏振度完全独立控制新范式
学习
RisunJan1 小时前
Linux命令-iotop命令(实时磁盘 I/O 监控工具)
linux·运维·服务器
Kevin Wang7271 小时前
服务器损坏,数据迁移,只有一个链接窗口的情况下
运维·服务器
大连好光景1 小时前
《Docker容器提权&逃逸总结》
linux·运维·服务器
丁丁丁梦涛1 小时前
TencentOS Server 4.4(兼容centos 9 stream)部署KKFileView
linux·运维·centos·kkfileview
sww_10261 小时前
JVM基础学习
jvm·学习·测试工具
南山nash2 小时前
Docker 网络详细讲解
运维·docker·容器