29.1.1. 安装

29.1.1.1. Ubuntu使用apt安装

参考:https://grafana.com/docs/grafana/latest/setup-grafana/installation/debian/

1$ sudo apt-get install -y apt-transport-https software-properties-common wget
2$ wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null
3$ echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
4$ sudo apt-get update
5$ sudo apt-get install grafana
6$ systemctl status grafana-server
7$ systemctl enable grafana-server
8$ systemctl start grafana-server
9$ journalctl -f -u grafana-server