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)

相关推荐
安当加密13 小时前
无需改 PAM!轻量级 RADIUS + ASP身份认证系统 实现 Linux 登录双因子认证
linux·运维·服务器
dashizhi201513 小时前
服务器共享禁止保存到本地磁盘、共享文件禁止另存为本地磁盘、移动硬盘等
运维·网络·stm32·安全·电脑
内卷焦虑人士13 小时前
Windows安装WSL2+Ubuntu 22.04
linux·windows·ubuntu
网教盟人才服务平台14 小时前
2026数字中国创新大赛-数字安全赛道全面启动!
网络·安全
九河云14 小时前
云上安全运营中心(SOC)建设:从被动防御到主动狩猎
大数据·人工智能·安全·架构·数字化转型
dddddppppp12315 小时前
qemu模拟的一个内核驱动 io口中断
linux
神秘喵学长15 小时前
HNU信息系统安全第一章
安全·系统安全·学习笔记
程序员老赵15 小时前
超全 Docker 镜像源配置指南|Windows/Mac/Linux一键搞定,拉镜像再也不卡顿
linux·后端·容器
兄弟加油,别颓废了。15 小时前
BUUCTF——Basic——BUU LFI COURSE 11
安全·web安全
门豪杰15 小时前
Ubuntu下安装Claude Code
linux·运维·ubuntu·claude·claude code