国内镜像安装mongodb

国内镜像安装mongodb

1
2
3
4
5
6
7
8
9
10
11
12
13
14
wget https://mirrors.aliyun.com/mongodb/yum/redhat/7Server/mongodb-org/4.0/x86_64/RPMS/mongodb-org-4.0.3-1.el7.x86_64.rpm
wget https://mirrors.aliyun.com/mongodb/yum/redhat/7Server/mongodb-org/4.0/x86_64/RPMS/mongodb-org-mongos-4.0.3-1.el7.x86_64.rpm
wget https://mirrors.aliyun.com/mongodb/yum/redhat/7Server/mongodb-org/4.0/x86_64/RPMS/mongodb-org-server-4.0.3-1.el7.x86_64.rpm
wget https://mirrors.aliyun.com/mongodb/yum/redhat/7Server/mongodb-org/4.0/x86_64/RPMS/mongodb-org-shell-4.0.3-1.el7.x86_64.rpm
wget https://mirrors.aliyun.com/mongodb/yum/redhat/7Server/mongodb-org/4.0/x86_64/RPMS/mongodb-org-tools-4.0.3-1.el7.x86_64.rpm

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

service mongod start
service mongod status