1、node_exporter下载
node_exporter-1.3.1.linux-amd64.tar.gz
tar -xzvf node_exporter-1.3.1.linux-amd64.tar.gz -C /usr/local
2、配置文件
cat >/etc/systemd/system/node_exporter.service<<EOF
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=prometheus
ExecStart=/usr/local/node_exporter/node_exporter
[Install]
WantedBy=default.target
EOF
3、启动
systemctl daemon-reload
systemctl start node_exporter
systemctl status node_exporter
标签:node,exporter,target,tar,1.3,systemctl,安装 From: https://www.cnblogs.com/52shaidan/p/17059327.html