一、docker部署(副本集)(推荐)
https://doc.rg1008.com/docs/rg_dev/rg_dev-1ev7h5a4qkvss
二、主机部署(单例)
https://search.oepkgs.net/detail/tiFEfYgBmeGdTbMUD9VP
https://www.runoob.com/docker/docker-install-mongodb.html
1. 添加源
dnf config-manager –add-repo https://archives.openeuler.openatom.cn/openEuler-20.09/everything/x86_64/
2. 更新源索引
dnf clean all && dnf makecache
3. 安装 mongodb 软件包
dnf install mongodb
/usr/bin/mongo
/usr/bin/mongobridge
/usr/share/doc/mongodb
/usr/share/doc/mongodb/APACHE-2.0.txt
/etc/ima/digest_lists/0-metadata_list-compact-mongodb-4.5.0-2.oe1.x86_64
/etc/ima/digest_lists.tlv/0-metadata_list-compact_tlv-mongodb-4.5.0-2.oe1.x86_64
mongo --version
查询软件是否已安装(如果安装,会列出安装信息)
rpm -qa | grep mongo
查看MongoDB服务是否启动成功(端口方式)
netstat -lanp | grep “27017”
文档更新时间: 2024-05-12 23:35 作者:admin