prometheus监控系统配置开机自启

 

[root@prometheus bin]#  vi /usr/lib/systemd/system/prometheus.service
[Unit]
Description=Prometheus Monitoring System
Documentation=Prometheus Monitoring System

[Service]
ExecStart=/usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml --web.li
sten-address=:9090

[Install]
WantedBy=multi-user.target

[root@promethues ~]# systemctl daemon-reload

[root@promethues ~]# systemctl start prometheus
[root@promethues ~]# systemctl enable prometheus
Created symlink from /etc/systemd/system/multi-user.target.wants/prometheus.service to /usr/lib/systemd/system/prometheus.service.

prometheus监控系统配置开机自启

上一篇:SDN第二次上机实验


下一篇:vue 中的h函数