二进制部署
wget https://dl.grafana.com/oss/release/grafana-8.0.4.linux-amd64.tar.gz
tar -zxvf grafana-8.0.4.linux-amd64.tar.gz -C /usr/local
ln -sv /usr/local/grafana-8.0.4/ /usr/local/griffin
配置systemd启动Grafana
vim /lib/systemd/system/grafana-server.service
[Unit]
Description=Grafana
After=network-online.target
[Service]
ExecStart=/usr/local/grafana/bin/grafana-server -homepath /usr/local/grafana
[Install]
WantedBy=multi-user.target
配置开机启动
sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl enable grafana-server