📅  最后修改于: 2022-03-11 14:51:21.464000             🧑  作者: Mango
# install grafana on a linux (latest OSS release)
sudo apt-get install -y apt-transport-https
sudo apt-get install -y software-properties-common wget
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
sudo apt-get update
sudo apt-get install grafana
# start the server with
grafana-server
# or if you want to have it running as a service
sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl status grafana-server
sudo systemctl enable grafana-server.service # if you want to have it running on startup
# Default grafana is running on port: 3000
# login with user: admin | pass: admin