标签:res tar conf add install cst multi list 自启
默认的9090改为9999:
docker run -d -p 9999:9090 \
-v $PWD/prometheus.yml:/etc/prometheus/prometheus.yml \
--name prometheus \
prom/prometheus \
安装包解压后直接启动,加上参数 --web.listen-address中指定:./prometheus --web.listen-address=:9999
[Unit]
Description=Prometheus
[Service]
ExecStart=/opt/prometheus --config.file=/opt/prometheus.yml --web.listen-address=:9999
[Install]
WantedBy=multi-user.target
标签:res tar conf add install cst multi list 自启
原文地址:https://www.cnblogs.com/jamespeng/p/14719298.html