cd /tmp/ curl -s https://api.github.com/repos/prometheus/node_exporter/releases/latest | grep browser_download_url|grep linux-amd64|cut -d '"' -f 4|wget -qi - tar -xvf node_exporter*.tar.gz cd node_exporter*/ cp node_exporter /usr/local/bin cd node_exporter --version useradd node_exporter tee /etc/systemd/system/node_exporter.service <