在SLES 11.3上安装MongoDB Enterprise 3.4.6
发表于:2025-11-07 作者:千家信息网编辑
千家信息网最后更新 2025年11月07日,///////////////////// MongoDB安装///////////////////这里采用rpm包离线安装的方法,并非官方文档中介绍使用http的联网安装方法,因为很多情况下服务器是
千家信息网最后更新 2025年11月07日在SLES 11.3上安装MongoDB Enterprise 3.4.6///////////////////
// MongoDB安装
///////////////////
这里采用rpm包离线安装的方法,并非官方文档中介绍使用http的联网安装方法,因为很多情况下服务器是直连外网会有很多限制
===从MongoDB官网下载四个rpm包,网址是https://repo.mongodb.com/zypper/suse/11/mongodb-enterprise/3.4/x86_64/RPMS/
mongodb-enterprise-mongos-3.4.6-1.suse11.x86_64.rpm
mongodb-enterprise-server-3.4.6-1.suse11.x86_64.rpm
mongodb-enterprise-shell-3.4.6-1.suse11.x86_64.rpm
mongodb-enterprise-tools-3.4.6-1.suse11.x86_64.rpm
===从MongoDB官网下载public key,网址是https://www.mongodb.org/static/pgp/server-3.4.asc
server-3.4.asc
===上面的5个文件存放至目录下
/mongosoft
===SuSE上建立repository
zypper ar file:///iso1 iso1 <---SuSE的安装介质在/iso1目录下
zypper lr
# | Alias | Name | Enabled | Refresh
--+--------------------------------------------------+--------------------------------------------------+---------+--------
1 | SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138 | SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138 | Yes | No
2 | iso1 | iso1 | Yes | No
===SuSE上安装所需要的包
zypper install cyrus-sasl cyrus-sasl-plain cyrus-sasl-gssapi krb5 libcurl4 libldap-2_4-2 libopenssl1_0_0 libsensors4 libsnmp30 libpcap1 libwrap0 rpm
===导入MongoDB public key
rpm --import /mongosoft/server-3.4.asc
注:如果不导入public key,下面在使用zypper安装的时候会有类似报错,但是不影响使用
warning: /var/cache/zypp/packages/_tmpRPMcache_/mongodb-enterprise-mongos-3.4.6-1.suse11.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID a15703c6
===安装mongod daemon
mongo1990:/mongosoft # zypper install mongodb-enterprise-server-3.4.6-1.suse11.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW packages are going to be installed:
mongodb-enterprise-server net-snmp perl-SNMP
The following package is not supported by its vendor:
mongodb-enterprise-server
3 new packages to install.
Overall download size: 15.9 MiB. After the operation, additional 54.8 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package perl-SNMP-5.4.2.1-8.12.16.1.x86_64 (1/3), 179.0 KiB (609.0 KiB unpacked)
Retrieving package net-snmp-5.4.2.1-8.12.16.1.x86_64 (2/3), 370.0 KiB (1.0 MiB unpacked)
Retrieving package mongodb-enterprise-server-3.4.6-1.suse11.x86_64 (3/3), 15.4 MiB (53.2 MiB unpacked)
Installing: perl-SNMP-5.4.2.1-8.12.16.1 [done]
Installing: net-snmp-5.4.2.1-8.12.16.1 [done]
Additional rpm output:
Updating etc/sysconfig/net-snmp...
Retrieving package mongodb-enterprise-server-3.4.6-1.suse11.x86_64 (1/3), 15.4 MiB (53.2 MiB unpacked)
Installing: mongodb-enterprise-server-3.4.6-1.suse11 [done]
Additional rpm output:
insserv: warning: script 'K01scalarizr' missing LSB tags
insserv: warning: script 'S01scalr-upd-client' missing LSB tags
insserv: warning: script 'scalr-upd-client' missing LSB tags
insserv: warning: script 'scalarizr' missing LSB tags
insserv: Service syslog is missed in the runlevels 4 to use service ftpd
mongod 0:off 1:off 2:on 3:on 4:off 5:on 6:off
===安装mongos daemon
mongo1990:/mongosoft # zypper install mongodb-enterprise-mongos-3.4.6-1.suse11.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
mongodb-enterprise-mongos
The following package is not supported by its vendor:
mongodb-enterprise-mongos
1 new package to install.
Overall download size: 8.6 MiB. After the operation, additional 29.7 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package mongodb-enterprise-mongos-3.4.6-1.suse11.x86_64 (1/1), 8.6 MiB (29.7 MiB unpacked)
Retrieving package mongodb-enterprise-mongos-3.4.6-1.suse11.x86_64 (1/1), 8.6 MiB (29.7 MiB unpacked)
Installing: mongodb-enterprise-mongos-3.4.6-1.suse11 [done]
Additional rpm output:
===安装mongo shell
mongo1990:/mongosoft # zypper install mongodb-enterprise-shell-3.4.6-1.suse11.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
mongodb-enterprise-shell
The following package is not supported by its vendor:
mongodb-enterprise-shell
1 new package to install.
Overall download size: 8.8 MiB. After the operation, additional 30.3 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package mongodb-enterprise-shell-3.4.6-1.suse11.x86_64 (1/1), 8.8 MiB (30.3 MiB unpacked)
Retrieving package mongodb-enterprise-shell-3.4.6-1.suse11.x86_64 (1/1), 8.8 MiB (30.3 MiB unpacked)
Installing: mongodb-enterprise-shell-3.4.6-1.suse11 [done]
Additional rpm output:
===安装mongo tools
mongo1990:/mongosoft # zypper install mongodb-enterprise-tools-3.4.6-1.suse11.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
mongodb-enterprise-tools
The following package is not supported by its vendor:
mongodb-enterprise-tools
1 new package to install.
Overall download size: 47.4 MiB. After the operation, additional 173.6 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package mongodb-enterprise-tools-3.4.6-1.suse11.x86_64 (1/1), 47.4 MiB (173.6 MiB unpacked)
Retrieving package mongodb-enterprise-tools-3.4.6-1.suse11.x86_64 (1/1), 47.4 MiB (173.6 MiB unpacked)
Installing: mongodb-enterprise-tools-3.4.6-1.suse11 [done]
Additional rpm output:
当然还有一个解压Tar包的安装方法,可以参考:https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-linux,此处不做介绍
/////////////////////////
// mongodb服务启动与停止
/////////////////////////
mongo1990:~ # service mongod start
Starting mongod: done
mongo1990:~ # service mongod status
Checking for mongod: running
mongo1990:~ # service mongod stop
Stopping mongod: done
/////////////////////////
// mongodb服务自动重启设置
/////////////////////////
mongo1990:~ # chkconfig --level 235 mongod on
insserv: warning: script 'K01scalarizr' missing LSB tags
insserv: warning: script 'S01scalr-upd-client' missing LSB tags
insserv: warning: script 'scalr-upd-client' missing LSB tags
insserv: warning: script 'scalarizr' missing LSB tags
insserv: Service syslog is missed in the runlevels 4 to use service ftpd
mongo1990:~ # chkconfig --list | grep mongo
mongod 0:off 1:off 2:on 3:on 4:off 5:on 6:off
///////////////////
// 卸载mongodb
///////////////////
sudo service mongod stop
sudo zypper remove $(rpm -qa | grep mongodb-enterprise)
sudo rm -r /var/log/mongodb <---删除日志文件
sudo rm -r /var/lib/mongo <---删除数据文件
// MongoDB安装
///////////////////
这里采用rpm包离线安装的方法,并非官方文档中介绍使用http的联网安装方法,因为很多情况下服务器是直连外网会有很多限制
===从MongoDB官网下载四个rpm包,网址是https://repo.mongodb.com/zypper/suse/11/mongodb-enterprise/3.4/x86_64/RPMS/
mongodb-enterprise-mongos-3.4.6-1.suse11.x86_64.rpm
mongodb-enterprise-server-3.4.6-1.suse11.x86_64.rpm
mongodb-enterprise-shell-3.4.6-1.suse11.x86_64.rpm
mongodb-enterprise-tools-3.4.6-1.suse11.x86_64.rpm
===从MongoDB官网下载public key,网址是https://www.mongodb.org/static/pgp/server-3.4.asc
server-3.4.asc
===上面的5个文件存放至目录下
/mongosoft
===SuSE上建立repository
zypper ar file:///iso1 iso1 <---SuSE的安装介质在/iso1目录下
zypper lr
# | Alias | Name | Enabled | Refresh
--+--------------------------------------------------+--------------------------------------------------+---------+--------
1 | SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138 | SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138 | Yes | No
2 | iso1 | iso1 | Yes | No
===SuSE上安装所需要的包
zypper install cyrus-sasl cyrus-sasl-plain cyrus-sasl-gssapi krb5 libcurl4 libldap-2_4-2 libopenssl1_0_0 libsensors4 libsnmp30 libpcap1 libwrap0 rpm
===导入MongoDB public key
rpm --import /mongosoft/server-3.4.asc
注:如果不导入public key,下面在使用zypper安装的时候会有类似报错,但是不影响使用
warning: /var/cache/zypp/packages/_tmpRPMcache_/mongodb-enterprise-mongos-3.4.6-1.suse11.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID a15703c6
===安装mongod daemon
mongo1990:/mongosoft # zypper install mongodb-enterprise-server-3.4.6-1.suse11.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW packages are going to be installed:
mongodb-enterprise-server net-snmp perl-SNMP
The following package is not supported by its vendor:
mongodb-enterprise-server
3 new packages to install.
Overall download size: 15.9 MiB. After the operation, additional 54.8 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package perl-SNMP-5.4.2.1-8.12.16.1.x86_64 (1/3), 179.0 KiB (609.0 KiB unpacked)
Retrieving package net-snmp-5.4.2.1-8.12.16.1.x86_64 (2/3), 370.0 KiB (1.0 MiB unpacked)
Retrieving package mongodb-enterprise-server-3.4.6-1.suse11.x86_64 (3/3), 15.4 MiB (53.2 MiB unpacked)
Installing: perl-SNMP-5.4.2.1-8.12.16.1 [done]
Installing: net-snmp-5.4.2.1-8.12.16.1 [done]
Additional rpm output:
Updating etc/sysconfig/net-snmp...
Retrieving package mongodb-enterprise-server-3.4.6-1.suse11.x86_64 (1/3), 15.4 MiB (53.2 MiB unpacked)
Installing: mongodb-enterprise-server-3.4.6-1.suse11 [done]
Additional rpm output:
insserv: warning: script 'K01scalarizr' missing LSB tags
insserv: warning: script 'S01scalr-upd-client' missing LSB tags
insserv: warning: script 'scalr-upd-client' missing LSB tags
insserv: warning: script 'scalarizr' missing LSB tags
insserv: Service syslog is missed in the runlevels 4 to use service ftpd
mongod 0:off 1:off 2:on 3:on 4:off 5:on 6:off
===安装mongos daemon
mongo1990:/mongosoft # zypper install mongodb-enterprise-mongos-3.4.6-1.suse11.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
mongodb-enterprise-mongos
The following package is not supported by its vendor:
mongodb-enterprise-mongos
1 new package to install.
Overall download size: 8.6 MiB. After the operation, additional 29.7 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package mongodb-enterprise-mongos-3.4.6-1.suse11.x86_64 (1/1), 8.6 MiB (29.7 MiB unpacked)
Retrieving package mongodb-enterprise-mongos-3.4.6-1.suse11.x86_64 (1/1), 8.6 MiB (29.7 MiB unpacked)
Installing: mongodb-enterprise-mongos-3.4.6-1.suse11 [done]
Additional rpm output:
===安装mongo shell
mongo1990:/mongosoft # zypper install mongodb-enterprise-shell-3.4.6-1.suse11.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
mongodb-enterprise-shell
The following package is not supported by its vendor:
mongodb-enterprise-shell
1 new package to install.
Overall download size: 8.8 MiB. After the operation, additional 30.3 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package mongodb-enterprise-shell-3.4.6-1.suse11.x86_64 (1/1), 8.8 MiB (30.3 MiB unpacked)
Retrieving package mongodb-enterprise-shell-3.4.6-1.suse11.x86_64 (1/1), 8.8 MiB (30.3 MiB unpacked)
Installing: mongodb-enterprise-shell-3.4.6-1.suse11 [done]
Additional rpm output:
===安装mongo tools
mongo1990:/mongosoft # zypper install mongodb-enterprise-tools-3.4.6-1.suse11.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
mongodb-enterprise-tools
The following package is not supported by its vendor:
mongodb-enterprise-tools
1 new package to install.
Overall download size: 47.4 MiB. After the operation, additional 173.6 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package mongodb-enterprise-tools-3.4.6-1.suse11.x86_64 (1/1), 47.4 MiB (173.6 MiB unpacked)
Retrieving package mongodb-enterprise-tools-3.4.6-1.suse11.x86_64 (1/1), 47.4 MiB (173.6 MiB unpacked)
Installing: mongodb-enterprise-tools-3.4.6-1.suse11 [done]
Additional rpm output:
当然还有一个解压Tar包的安装方法,可以参考:https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-linux,此处不做介绍
/////////////////////////
// mongodb服务启动与停止
/////////////////////////
mongo1990:~ # service mongod start
Starting mongod: done
mongo1990:~ # service mongod status
Checking for mongod: running
mongo1990:~ # service mongod stop
Stopping mongod: done
/////////////////////////
// mongodb服务自动重启设置
/////////////////////////
mongo1990:~ # chkconfig --level 235 mongod on
insserv: warning: script 'K01scalarizr' missing LSB tags
insserv: warning: script 'S01scalr-upd-client' missing LSB tags
insserv: warning: script 'scalr-upd-client' missing LSB tags
insserv: warning: script 'scalarizr' missing LSB tags
insserv: Service syslog is missed in the runlevels 4 to use service ftpd
mongo1990:~ # chkconfig --list | grep mongo
mongod 0:off 1:off 2:on 3:on 4:off 5:on 6:off
///////////////////
// 卸载mongodb
///////////////////
sudo service mongod stop
sudo zypper remove $(rpm -qa | grep mongodb-enterprise)
sudo rm -r /var/log/mongodb <---删除日志文件
sudo rm -r /var/lib/mongo <---删除数据文件
文件
方法
服务
目录
网址
介质
情况
数据
文档
日志
时候
服务器
面的
参考
影响
限制
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
一键安装系统能装数据库吗
python私人服务器系统
组织健全工作网建立数据库
汉武大帝下载软件开发
ipv9国家网络安全个股
网络安全周知识竞赛答案
gp数据库磁盘满
pdb数据库怎么找序列
网络安全认证证书有用吗
南京互联网科技公司
图文数据库山西日报
网络技术是计算机几级
网络技术与应用会考题
临沂大智软件开发集团
信息系统网络安全保护管理办法
谷歌最便宜的独立服务器
网络安全认证要发布
2021国家网络安全周开幕式
网络技术公司运营专员
广东综合软件开发销售价格
手机的软件开发平台
python私人服务器系统
课程表 数据库
安卓软件开发需要哪些技术
基站软件开发的跟踪岗位
mac连接svn服务器
自治区党委网信办网络安全
数据库连接池连接数量控制
玲珑服务器
太保网络安全保险产品