curl https://packages.grafana.com/gpg.key | sudo apt-key add -
sudo apt-get install -y apt-transport-https
echo "deb https://mirrors.aliyun.com/grafana/debian stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
echo "deb https://mirrors.aliyun.com/grafana/debian beta main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
sudo apt-get update sudo apt-get install grafana
[grafana] name=grafana baseurl=https://mirrors.aliyun.com/grafana/yum/rpm repo_gpgcheck=0 enabled=1 gpgcheck=0
sudo yum makecache sudo yum install grafana
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70003733/viewspace-2852982/ ,如需转载,请注明出处,否则将追究法律责任。