当前位置: 首页 > news >正文

Centos8部署mongodb报错记录

使用mongo ops安装mongodb6.0.4副本集报错

error while loading shared libraries: libnetsnmpmibs.so.35: cannot open shared object file: No such file or directory
解决

 yum install net-snmp net-snmp-devel -y

建议:初始化系统时把官网上的依赖包都装一遍 即

yum install -y bash-completion unzip conntrack ntpdate ntp curl sysstat libseccomp wget vim net-tools git nfs-utils rpcbind nload htop tree telnet python-devel python-pip numactl dstat net-snmp net-snmp-devel

centos8 stream部署mms agent报错

报错内容

panic: Failed to load Linux flavor and version.  err=Error getting linux flavor and version : Error determining version of rhel linux that we're running on : Could not find version in from release reader for linux flavor rhel.  number of submatches=0 : Error getting linux flavor and version : Error determining version of rhel linux that we're running on : Could not find version in from release reader for linux flavor rhel.  number of submatches=0

TroubleShooting

在ecs上更换不同的mms agent测试

大概步骤

  1. 使用curl从mongo官网下载新版本的ops agent,
  2. 使用cpio命令提取出其中对应的rpm包,
  3. 安装启动测试
rpm -qpl mongodb-mms-7.0.14.500.20250121T1020Z.x86_64.rpm

[root@iv-xx mms]# rpm2cpio mongodb-mms-7.0.14.500.20250121T1020Z.x86_64.rpm | cpio -idmv "./opt/mongodb/mms/agent/automation/mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm"
cpio: ./opt/mongodb/mms/agent/automation/mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm not created: newer or same age version exists
./opt/mongodb/mms/agent/automation/mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm
4620532 blocks
[root@iv-xxautomation]# file /opt/mongodb/mms/agent/automation/mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm 
mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm: RPM v3.0 bin i386/x86_64 mongodb-mms-automation-agent-manager-107.0.13.8702-1

[root@iv-xx mms]# rpm -U mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm 

# 结论:启动后同样的报错

解决

经过在ecs上更换操作不同版本操作系统得出:mms agent不支持 centos stream系列,操作系统版本换成centos 8.x系列即可

相关文章:

  • 从星链到数字样机:直升机智能化升级的双引擎
  • 代码随想录算法营Day59 | 寻找存在的路径, 冗余连接,冗余连接II
  • 使用eNSP进行路由策略与引入实验
  • Manus AI : Agent 元年开启.pdf
  • OpenHarmony子系统开发 - AI框架开发指导
  • 机器学习常见面试题
  • 第TR3周:Pytorch复现Transformer
  • 深入解析 JVM —— 从基础概念到实战调优的全链路学习指南
  • Permute for Mac v3.12.1 文件格式转换器 支持M、Intel芯片
  • 多模态知识图谱融合
  • golang将大接口传递给小接口以及场景
  • _mm_load_si128和_mm_loadu_si128解析
  • 一个针对煤炭市场的人工智能项目的开发示例
  • 详细GD32F103的FreeRTOS移植含常见错误
  • 基于火山引擎的DeepSeek-V3 api实现简单的数据查询功能
  • Python爬虫实战:爬取财金网实时财经信息
  • 2、数据库的基础学习(中):分组查询、连接查询 有小例子
  • CV毕业宝典[02_目标检测概述]
  • 山东省网络安全技能大赛历年真题 山东网络安全创意大赛
  • python从入门到精通(二十三):文件操作和目录管理难度分级练习题
  • 妇科医院网站建设怎么做/seo推广官网
  • 做jsp网站用哪些软件下载/磁力天堂最新版地址
  • 益阳一站式网站建设公司/网络推广运营公司
  • 同一个wifi下_我如何用手机访问我用我电脑做服务器的网站/企业网站设计图片
  • wordpress 个人简介/seo是啥意思
  • 网上订酒店 网站开发/搜索引擎营销推广方案