1、从官网下载最新版本
官网地址:https://prometheus.io/download/访问界面如下,我们需要注意的是,要选择带有“LTS”样式的版本,这是稳定版本,推荐。
2、上传解压
[root@loaclhost home]# ls
prometheus-2.45.5.linux-amd64.tar.gz
[root@loaclhost home]# tar xf prometheus-2.45.5.linux-amd64.tar.gz
[root@loaclhost home]# ls
prometheus-2.45.5.linux-amd64 prometheus-2.45.5.linux-amd64.tar.gz
[root@loaclhost home]# mv prometheus-2.45.5.linux-amd64 prometheus
[root@loaclhost home]# ls
prometheus prometheus-2.45.5.linux-amd64.tar.gz
[root@loaclhost home]# cd prometheus
[root@loaclhost prometheus]# ll
total 229792
drwxr-xr-x 2 1001 127 4096 May 2 17:42 console_libraries
drwxr-xr-x 2 1001 127 4096 May 2 17:42 consoles
-rw-r--r-- 1 1001 127 11357 May 2 17:42 LICENSE
-rw-r--r-- 1 1001 127 3773 May 2 17:42 NOTICE
-rwxr-xr-x 1 1001 127 121066245 May 2 17:00 prometheus
-rw-r--r-- 1 1001 127 934 May 2 17:42 prometheus.yml
-rwxr-xr-x 1 1001 127 114206977 May 2 17:01 promtool
[root@loaclhost prometheus]#
3、启动prometheus
[root@loaclhost prometheus]# nohup ./prometheus &
[1] 25427
[root@loaclhost prometheus]# nohup: ignoring input and appending output to ‘nohup.out’
[root@loaclhost prometheus]#
这是最简单的启动方式,直接使用nohup命令就启动了,但是线上不推荐使用这种方式;
查看进程,是否启动成功了;
[root@loaclhost prome

最低0.47元/天 解锁文章
976

被折叠的 条评论
为什么被折叠?



