prometheus + granfana

prometheus + granfana

下载软件:安装prometheus 服务器:[root@node01 prometheus]#

wget https://github.com/prometheus/prometheus/releases/download/v2.8.1/prometheus-2.8.1.linux-amd64.tar.gz

tar xvfz prometheus-2.8.1.linux-amd64.tar.gz -C /usr/local/

cd /usr/local/

ln -sv prometheus-2.8.1.linux-amd64 prometheus

cd prometheus

./prometheus --version

groupadd prometheus

useradd -g prometheus -s /sbin/nologin prometheus

id prometheus

chown -R prometheus:prometheus /usr/local/prometheus

cat /etc/passwd

mkdir -p /home/software/prometheus-date/

chown -R prometheus:prometheus /home/software/prometheus-date/

touch /usr/lib/systemd/system/prometheus.service

chown -R prometheus:prometheus /usr/lib/systemd/system/prometheus.service

vim /usr/lib/systemd/system/prometheus.service

上一篇:am335x system upgrade rootfs custom service using systemd script


下一篇:「systemd」- 修改单元文件 @20210318