1. 程式人生 > >redhat7上rpm方式安裝mongodb

redhat7上rpm方式安裝mongodb

1、下載相關檔案,下載地址:http://mirrors.aliyun.com/mongodb/yum/redhat/7/mongodb-org/stable/x86_64/RPMS/

mongodb-org-3.2.9-1.el7.x86_64.rpm        
mongodb-org-server-3.2.9-1.el7.x86_64.rpm 
mongodb-org-tools-3.2.9-1.el7.x86_64.rpm
mongodb-org-mongos-3.2.9-1.el7.x86_64.rpm 
mongodb-org-shell-3.2.9-1.el7.x86_64.rpm

2、開始安裝

[root@linux-node1 mongodb]# rpm -ivh mongodb-org-mongos-3.2.9-1.el7.x86_64.rpm 
[root@linux-node1 mongodb]# rpm -ivh mongodb-org-server-3.2.9-1.el7.x86_64.rpm
[root@linux-node1 mongodb]# rpm -ivh mongodb-org-shell-3.2.9-1.el7.x86_64.rpm
[root@linux-node1 mongodb]# rpm -ivh mongodb-org-tools-3.2.9-1.el7.x86_64.rpm
[root@linux-node1 mongodb]# rpm -ivh mongodb-org-3.2.9-1.el7.x86_64.rpm
安裝截圖

3、啟動mongodb

service mongod start
service mongod status

連線測試