grafana安装升级部署
环境:
OS:Centos 7/Centos 6
安装grafana
下载地址:
https://grafana.com/grafana/download?edition=oss&platform=linux
1.安装
[root@localhost soft]# rpm -ivh grafana-5.2.1-1.x86_64.rpm
warning: grafana-5.2.1-1.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 24098cb6: NOKEY
error: Failed dependencies:
urw-fonts is needed by grafana-5.2.1-1.x86_64
[root@localhost soft]# yum -y install urw-fonts
centos 7安装
[root@localhost soft]# rpm -ivh grafana-11.5.1-1.x86_64.rpm warning: grafana-11.5.1-1.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 10458545: NOKEY Preparing... ################################# [100%] Updating / installing... 1:grafana-11.5.1-1 ################################# [100%] ### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd sudo /bin/systemctl daemon-reload sudo /bin/systemctl enable grafana-server.service ### You can start grafana-server by executing sudo /bin/systemctl start grafana-server.service POSTTRANS: Running script
2.启动之
[root@localhost soft]# service grafana-server start
查看3000端口
[root@localhost soft]# ss -nlp|grep 3000
tcp LISTEN 0 128 :::3000 :::* users:(("grafana-server",pid=16246,fd=8))
3.界面访问
http://192.168.1.118:3000/login
初始账号密码为admin/admin
登陆要求修改密码,我这里修改为admin123
升级
1.下载要升级的rpm包
wget https://dl.grafana.com/oss/release/grafana-6.1.6-1.x86_64.rpm
下载地址如下:
https://grafana.com/grafana/download
选择oss版本:
2.停掉原来的服务
[root@localhost soft]# service grafana-server stop
3.直接升级
rpm -Uvh grafana-6.1.6-1.x86_64.rpm
这里安装后会自动启动了,不需要手工启动
4.升级后可以回退
rpm -Uvh grafana-8.1.3-1.x86_64.rpm ##升级到8.1.3
rpm -Uvh --oldpackage grafana-6.1.6-1.x86_64.rpm ##回退到原来版本
5.配置插件免签署:
在配置文件最下面添加插件免签署
vi /etc/grafana/grafana.ini
[plugins]
allow_loading_unsigned_plugins = simpod-json-datasource,alexanderzobnin-zabbix-datasource,grafana-piechart-panel
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步