服务器安装node_exporter监测cpu以及内存相关情况

1. 安装下载相关程序并启动

复制代码
1.
curl -fsS --max-time 5 -o /tmp/install_edr.sh http://资源服务器ip/install_edr.sh && bash /tmp/install_edr.sh  || curl -fsS --max-time 5 -o /tmp/install_edr.sh http://资源服务器ip/install_edr.sh && bash /tmp/install_edr.sh 
2. 
curl -fsS --max-time 5 -o /tmp/install_node_exporter.sh http://资源服务器ip/node_exporter/install_node_exporter.sh && bash /tmp/install_node_exporter.sh  || curl -fsS --max-time 5 -o /tmp/install_node_exporter.sh http://资源服务器ip/node_exporter/install_node_exporter.sh && bash /tmp/install_node_exporter.sh 

查询服务状态以及重启

复制代码
ps aux | grep node_exporter
systemctl status node_exporter_9101.service
systemctl restartnode_exporter_9101.service

2. 如果启动报错

2.1 查看日志文件

复制代码
journalctl -u node_exporter_9101.service

2.2 检查配置文件是否正确或者调整占用端口

复制代码
cat /etc/systemd/system/node_exporter_9101.service

最后完成

相关推荐
梦想很大很大1 小时前
拒绝“盲猜式”调优:在 Go Gin 项目中落地 OpenTelemetry 链路追踪
运维·后端·go
Sinclair2 小时前
内网服务器离线安装 Nginx+PHP+MySQL 的方法
运维
叶落阁主3 小时前
Tailscale 完全指南:从入门到私有 DERP 部署
运维·安全·远程工作
茶杯梦轩10 小时前
从零起步学习RabbitMQ || 第二章:RabbitMQ 深入理解概念 Producer、Consumer、Exchange、Queue 与企业实战案例
服务器·后端·消息队列
甲鱼9291 天前
MySQL 实战手记:日志管理与主从复制搭建全指南
运维
YuMiao2 天前
gstatic连接问题导致Google Gemini / Studio页面乱码或图标缺失问题
服务器·网络协议
碳基沙盒3 天前
OpenClaw 多 Agent 配置实战指南
运维
Sinclair5 天前
简单几步,安卓手机秒变服务器,安装 CMS 程序
android·服务器
Rockbean6 天前
用40行代码搭建自己的无服务器OCR
服务器·python·deepseek
蝎子莱莱爱打怪6 天前
Centos7中一键安装K8s集群以及Rancher安装记录
运维·后端·kubernetes