centos9(linux): 安装prometheus服务端2.55(centos stream9)
一,官方下载地址:
https://www.prometheus.io/download/
如图:
二,下载
用wget从命令行下载
[root@backup prometheus]# wget https://github.com/prometheus/prometheus/releases/download/v2.55.0/prometheus-2.55.0.linux-amd64.tar.gz
三,安装
1,解压
[root@backup prometheus]# tar -zxvf prometheus-2.55.0.linux-amd64.tar.gz
2,把解压后的目录移动到安装目录下:
[root@backup prometheus]# mv prometheus-2.55.0.linux-amd64 /usr/local/soft/
四,用systemctl管理prometheus
1,创建服务文件
[root@backup prometheus]# vi /lib/systemd/system/prometheus.service
内容:
[Unit]
Description=prometheus
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/soft/prometheus-2.55.0.linux-amd64/prometheus --config.file="/usr/local/soft/prometheus-2.55.0.linux-amd64/prometheus.yml"
LimitNOFILE=65536
PrivateTmp=true
RestartSec=2
StartLimitInterval=0
Restart=always
[Install]
WantedBy=multi-user.target
2,重新加载service文件
[root@backup prometheus]# systemctl daemon-reload
启动prometheus服务:
[root@backup prometheus]# systemctl start prometheus.service
五,测试效果:
1,用ss查看端口是否打开:
[root@backup prometheus]# ss -lntp | grep 9090
LISTEN 0 4096 *:9090 *:* users:(("prometheus",pid=468312,fd=6))
2,从浏览器查看效果:
访问服务器的9090端口即可
分类:
prometheus监控
标签:
监控
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
2022-10-28 python:pip升级pip本身和setuptools(Python 3.7.15)
2022-10-28 centos8(linux):编译升级python版本:从python3.6到python3.11
2022-10-28 javascript:innerText、innerHTML、textContent的区别(chrome 107.0.5304.62)