Linux监控软件Monitorix 安装部署

dnf install -y gcc make rrdtool rrdtool-devel perl perl-devel perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple

上次元数据过期检查:1:44:49 前,执行于 2026年01月07日 星期三 09时40分13秒。

软件包 gcc-8.5.0-4.el8_5.x86_64 已安装。

软件包 make-1:4.2.1-10.el8.x86_64 已安装。

未找到匹配的参数: perl-MIME-Lite

未找到匹配的参数: perl-Config-General

未找到匹配的参数: perl-HTTP-Server-Simple

错误:没有任何匹配: perl-MIME-Lite perl-Config-General perl-HTTP-Server-Simple


CentOS 8/9 系统上安装 Monitorix 编译依赖时,遇到了perl-MIME-Liteperl-Config-Generalperl-HTTP-Server-Simple这三个包找不到的问题,这是因为 CentOS 8 + 的默认源里没有这些 Perl 模块,需要通过 Perl 的 CPAN 工具来安装

安装CPAN核心工具

dnf install -y perl-CPAN

通过 CPAN 交互式安装缺失的

启动CPAN shell

cpan

在CPAN shell中依次执行以下安装命令(每行输完按回车)

cpan[1]> install MIME::Lite

cpan[2]>install Config::General

cpan[3]>install HTTP::Server::Simple

安装完成后,输入exit退出CPAN shell

cpan[4]>exit

验证依赖是否安装完成

root@G Monitorix\]# perl -e 'use MIME::Lite; print "MIME::Lite installed\\n";' MIME::Lite installed \[root@G Monitorix\]# perl -e 'use Config::General; print "Config::General installed\\n";' Config::General installed \[root@G Monitorix\]# perl -e 'use HTTP::Server::Simple; print "HTTP::Server::Simple installed\\n";' HTTP::Server::Simple installed 、重新安装剩余的系统依赖 # dnf install -y gcc make rrdtool rrdtool-devel perl perl-devel perl-libwww-perl perl-MailTools perl-CGI perl-DBI perl-XML-Simple ![](https://i-blog.csdnimg.cn/direct/76830f0cf6804c6f8305f82eef2417a2.png)Monitorix 源码目录,继续执行编译和安装 # make install-systemd-all ![](https://i-blog.csdnimg.cn/direct/621a69edfd1047b0a4a7b711b9a0cbb7.png) #### 设置开机自启并启动服务 # 正确的开机自启命令 systemctl enable monitorix.service # 启动服务 systemctl start monitorix.service # 检查服务状态 systemctl status monitorix.service ![](https://i-blog.csdnimg.cn/direct/a3ee44be9fe046058d6352b3e2b5b689.png)报错: ![](https://i-blog.csdnimg.cn/direct/4458f588ec894cecba1ce68e6b651b05.png) # 下载阿里云镜像的rrdtool-perl包 wget https://mirrors.aliyun.com/centos-vault/8.5.2111/AppStream/x86_64/os/Packages/rrdtool-perl-1.7.0-16.el8.x86_64.rpm rpm -ivh rrdtool-perl-1.7.0-16.el8.x86_64.rpm 修改默认配置/etc/monitorix/monitorix.conf 重启服务$ sudo systemctl restart monitorix [浏览器打开 http://localhost:8080/](http://localhost:38080/ "浏览器打开 http://localhost:8080/") ![](https://i-blog.csdnimg.cn/direct/ca59d28090df48afbb0383951b2f3c24.png)

相关推荐
wdfk_prog21 小时前
[Linux]学习笔记系列 -- [fs]super
linux·笔记·学习
飞鸟真人21 小时前
关于python -m http.server的一些安全问题
python·安全·http
用户19653306721121 小时前
【TryHackMe】JPT-文件包含
安全
橘色的喵21 小时前
嵌入式二级 Bootloader (SBL) 的设计与实现:基于裸机环境的安全固件管理
安全·bootloader·二级boot
姚青&21 小时前
四.文件处理命令-文本编辑
linux
oMcLin21 小时前
如何在 Red Hat Linux 8 上实现 Kubernetes 自定义资源管理器(CRD)扩展,支持微服务架构
linux·架构·kubernetes
麦聪聊数据1 天前
MySQL 性能调优:从EXPLAIN到JSON索引优化
数据库·sql·mysql·安全·json
济6171 天前
linux(第十一期)--Makefile 语法简述-- Ubuntu20.04
linux
hwlfly1 天前
Linux内核TCP网络模块深度分析
linux