Notes
Search…
MongoDB

安装

1
cat > /etc/yum.repos.d/mongodb.repo << EOF
2
[mongodb-org-3.4]
3
name=MongoDB Repository
4
baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/3.4/x86_64/
5
gpgcheck=1
6
enabled=1
7
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
8
EOF
9
10
yum install mongodb-org-shell -y
11
12
mongo remotedb.mlab.com:27017/<dbname> -u <user> -p <pass>
Copied!
Last modified 2yr ago
Copy link