安装 ===================== Ubuntu使用apt安装 -------------------------------- 参考:https://grafana.com/docs/grafana/latest/setup-grafana/installation/debian/ .. code-block:: bash :linenos: $ sudo apt-get install -y apt-transport-https software-properties-common wget $ wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null $ 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 $ sudo apt-get update $ sudo apt-get install grafana $ systemctl status grafana-server $ systemctl enable grafana-server $ systemctl start grafana-server $ journalctl -f -u grafana-server