本节重点介绍 :
- 二进制安装prometheus,使用systemd托管服务
二进制安装prometheus
下载prometheus
- https://github.com/prometheus/prometheus/releases/download/v2.29.1/prometheus-2.29.1.linux-amd64.tar.gz
解压到指定目录
mkdir /opt/app
tar xvf prometheus-2.29.1.linux-amd64.tar.gz -C /opt/app
mv /opt/app/prometheus-2.29.1.linux-amd64 /opt/app/prometheus
<准备service文件