[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.