在centos7.9上部署VictoriaMetrics?v1.93.9
● 官网
https://github.com/VictoriaMetrics/VictoriaMetrics/releases
wget https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v1.93.9/victoria-metrics-linux-amd64-v1.93.9.tar.gz --no-check-certificate
mkdir -p /data/victoria-metrics
mkdir /usr/local/victoria-metrics-linux-amd64-v1.93.9
tar -zxf victoria-metrics-linux-amd64-v1.93.9.tar.gz -C /usr/local/victoria-metrics-linux-amd64-v1.93.9/
ln -s /usr/local/victoria-metrics-linux-amd64-v1.93.9/ /usr/local/victoria-metrics
cat << EOF > /etc/systemd/system/victoria-metrics.service
[Unit]
Description=victoria-metrics
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/victoria-metrics/victoria-metrics-prod -retentionPeriod=90d -storageDataPath=/data/victoria-metrics
WorkingDirectory=/data/victoria-metrics
Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl start victoria-metrics
systemctl enable victoria-metrics
systemctl status victoria-metrics
ps -ef |grep victoria-metrics