91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

在SLES 11.3上安裝MongoDB Enterprise 3.4.6

發布時間:2020-08-07 23:05:38 來源:ITPUB博客 閱讀:112 作者:18141908802 欄目:關系型數據庫
///////////////////
// 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      <---刪除數據文件

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

张家港市| 乡城县| 三江| 米脂县| 思南县| 彝良县| 垫江县| 任丘市| 宁夏| 江津市| 泰和县| 清苑县| 普宁市| 常熟市| 永德县| 同江市| 重庆市| 秦皇岛市| 灌阳县| 天水市| 宜兰市| 克什克腾旗| 长岭县| 黄平县| 永新县| 黑水县| 贵港市| 韶山市| 无为县| 杨浦区| 襄垣县| 青铜峡市| 赤城县| 隆林| 广丰县| 壶关县| 成都市| 榆树市| 揭东县| 黔东| 竹溪县|