服务器安装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

最后完成

相关推荐
骇客野人3 小时前
Redis 完整安装部署方案(Linux,分【源码编译】+【Docker】两种,推荐生产用源码,测试快速用 Docker)
运维
比兔代理5 小时前
正向代理与反向代理技术辨析,为什么代理 IP 属于正向代理
服务器·网络·http·ip
Wang's Blog6 小时前
Java 接入Redis: 通用命令与键管理
java·服务器·redis
Wang's Blog6 小时前
Java 接入Redis: 列表集合与有序集合操作命令
java·服务器·redis
蓝速科技7 小时前
会议室门牌公告通知发布选型与落地指南丨蓝速科技
大数据·运维·数据库·人工智能·科技
Ivanqhz7 小时前
SVD++算法
java·服务器·网络·深度学习·神经网络
chicheese7 小时前
Linux 面试速查表:从初级到高级,附高频场景答题模板
linux·运维
Linux-lucky8 小时前
32-38-Linux学习之旅之MySQL综合
linux·运维·学习·mysql·ubuntu
智能运维指南8 小时前
2026年ITSM系统怎么选?四款主流方案与五维评估模型
运维·itsm·嘉为蓝鲸
我命由我123459 小时前
Git 推送报错:error: src refspec main does not match any
运维·git·gitee·github·运维开发·学习方法·版本控制