prometheus,grafana ,alertmanager都无法通过tiup启动,但是可以手动启动

解决了,不知道怎么 prometheus,grafana ,alertmanager这些systemd文件都丢失了
在/etc/systemd/system下重新加入文件并授权就可以启动了
grafana-3000.service
[Unit]
Description=grafana service
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
LimitNOFILE=1000000
LimitSTACK=10485760
User=tidb
ExecStart=/bin/bash -c ‘/tidb-deploy/grafana-3000/scripts/run_grafana.sh’
Restart=always

RestartSec=15s

[Install]
WantedBy=multi-user.target

prometheus-9090.service

[Unit]
Description=prometheus service
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
LimitNOFILE=1000000
LimitSTACK=10485760
User=tidb
ExecStart=/bin/bash -c ‘/tidb-deploy/prometheus-9090/scripts/run_prometheus.sh’
ExecReload=/bin/bash -c ‘kill -HUP $MAINPID $(pidof /tidb-deploy/prometheus-9090/bin/ng-monitoring-server)’

Restart=always

RestartSec=15s

[Install]
WantedBy=multi-user.target

alertmanager-9093.service
[Unit]
Description=alertmanager service
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
LimitNOFILE=1000000
LimitSTACK=10485760
User=tidb
ExecStart=/bin/bash -c ‘/tidb-deploy/alertmanager-9093/scripts/run_alertmanager.sh’
Restart=always

RestartSec=15s

[Install]
WantedBy=multi-user.target