prometheus开机启动

/usr/lib/systemd/system/prometheus.service

[Unit]
Description=https://prometheus.io
After=network.target

[Service]
Type=simple
#Restart=on-failure
ExecStart=/usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml --web.listen-address=:9004

[Install]
WantedBy=multi-user.target

你可能感兴趣的:(centos,prometheus,linux,服务器)