cd /root/node_exporter
wget https://github.com/prometheus/node_exporter/releases/download/v1.7.0/node_exporter-1.7.0.linux-amd64.tar.gz
tar xvfz node_exporter-1.7.0.linux-amd64.tar.gz
#运行
cd /root/node_exporter/node_exporter-1.7.0.linux-amd64
./node_exporter
#开机启动
cd /etc/systemd/system/
nano node_exporter.service
===========================================
[Unit]
Description=node_exporter
Documentation=node_exporter Monitoring System
After=network.target
[Service]
ExecStart=/root/node_exporter/node_exporter-1.7.0.linux-amd64/node_exporter
–web.listen-address=:9100\
[Install]
WantedBy=multi-user.target
===========================================
systemctl daemon-reload
systemctl enable node_exporter # 设置开机自启动
systemctl start node_exporter # 启动服务
浏览器访问:http://192.168.31.135:9100/