prometheus 安装 下载 # https://prometheus.io/download/wget https://github.com/prometheus/prometheus/releases/download/v2.34.0/prometheus-2.34.0.linux-amd64.tar.gztar -zxf prometheus-2.34.0.linux-amd64.tar.gz -C /data0/prometheus-2.34.0sudo adduser prometheus sudo chown -R prometheus:prometheus /data0/prometheus-2.34.0# cd /data0/prometheus-2.34.0 # ./prometheus --config.file=prometheus.yml 设置服务 # vim /etc/systemd/system/prometheus.service [Unit] Description=Prometheus Server Documentation=https://prometheus.io/docs/introduction/overview/ After=network.target[Service] Restart=on-failure WorkingDirectory=/data0/prometheus-2.34.0/ ExecStart=/xxx/prometheus-2.34.0/prometheus \--config.file=/xxx/prometheus-2.34.0/prometheus.yml \--storage.tsdb.retention.time=30d \--web.enable-lifecycle# --web.external-url=https://虚机域名[Install] WantedBy=multi-user.target 启动 sudo systemctl daemon-reload sudo systemctl start prometheus sudo systemctl enable prometheus pdf在线免费转word文档 https://orcc.online/pdf