Mongodb 集群实战
该实战过程完全跟着官网一步一步实现 ,官网教程:https://docs.mongodb.com/manual/tutorial/atlas-free-tier-setup/
使用Mongo Shell连接Cluster :
- 官网登录,创建免费集群 (补:只能免费一个月,而且有各种限制) ,点击 Build a New Cluster 按钮,下面是我成功创建Cluster的图。

- 设置Mongodb User , 和 IP 白名单,注意IP白名单不是自己网络IP。了解: https://www.imooc.com/qadetail/249703?lastmedia=1



- 点击Connect

- 选择连接方法,下载对应的连接客户端,此处选择Shell

- 下载对应的客户端

- 设置环境变量至bin文件夹,不设也ok,但是到时运行程序要在对应路径下运行。

- copy 下载命令


- 打开cmd窗口 , 连接

连接成功~ 至于警告,问了问客服回答如下:Hi bibi thank you for getting in touch and sending the screenshot.The messages displayed in the screenshot can be treated a warnings.The warning message that says 'shell and versions do not match' is displayed as you appear to have downloaded version 4.0 of MongoDB (you can see this at the top of the screenshot) and version 3.6.6 of MongoDB Atlas. Rest assured that this is just a notification and version 4.0 of MongoDB and version 3.6.6 of MongoDB Atlas are compatible.The message 'user is not allowed to do action [getlog] on [admin]' appears when you have a free tier (M0) Instance of MongoDB Atlas. The free tier (M0), M2 and M5 Instances have some limitations and command limitations, including limited metrics for analysis. In spite of receiving this message, you should still be able to perform MongoDB CRUD Operations in the shell.For example, you can list your database there by entering;show dbsand create a new database, called test, by entering;use testYou may also find the following MongoDB Atlas article helpful;客服态度超级棒!
- 操作数据库
例如:MongoDB Enterprise Cluster0-shard-0:PRIMARY> use myNewDB
switched to db myNewDB
MongoDB Enterprise Cluster0-shard-0:PRIMARY> db.myNewCollection1.insertOne({x:1})
{
"acknowledged" : true,
"insertedId" : ObjectId("5b63d28b15b047a6f9a9d004")
}
MongoDB Enterprise Cluster0-shard-0:PRIMARY>后台看看集合变化

Mongodb 集群实战的更多相关文章
- 高可用的MongoDB集群-实战篇
1.概述 最近有同学和网友私信我,问我MongoDB方面的问题:这里我整理一篇博客来赘述下MongoDB供大家学习参考,博客的目录内容如下: 基本操作 CRUD MapReduce 本篇文章是基于Mo ...
- 【转载】MongoDB集群和实战详解
1.概述 最近有同学和网友私信我,问我MongoDB方面的问题:这里我整理一篇博客来赘述下MongoDB供大家学习参考,博客的目录内容如下: 基本操作 CRUD MapReduce 本篇文章是基于Mo ...
- 搭建高可用mongodb集群(四)—— 分片(经典)
转自:http://www.lanceyan.com/tech/arch/mongodb_shard1.html 按照上一节中<搭建高可用mongodb集群(三)-- 深入副本集>搭建后还 ...
- [转]搭建高可用mongodb集群(四)—— 分片
按照上一节中<搭建高可用mongodb集群(三)—— 深入副本集>搭建后还有两个问题没有解决: 从节点每个上面的数据都是对数据库全量拷贝,从节点压力会不会过大? 数据压力大到机器支撑不了的 ...
- 搭建高可用mongodb集群(四)—— 分片
按照上一节中<搭建高可用mongodb集群(三)—— 深入副本集>搭建后还有两个问题没有解决: 从节点每个上面的数据都是对数据库全量拷贝,从节点压力会不会过大? 数据压力大到机器支撑不了的 ...
- 搭建高可用mongodb集群(一)——配置mongodb
在大数据的时代,传统的关系型数据库要能更高的服务必须要解决高并发读写.海量数据高效存储.高可扩展性和高可用性这些难题.不过就是因为这些问题Nosql诞生了. NOSQL有这些优势: 大数据量,可以通过 ...
- 搭建高可用mongodb集群(四)—— 分片
按照上一节中<搭建高可用mongodb集群(三)-- 深入副本集>搭建后还有两个问题没有解决: 从节点每个上面的数据都是对数据库全量拷贝,从节点压力会不会过大? 数据压力大到机器支撑不了的 ...
- 搭建高可用mongodb集群—— 分片
从节点每个上面的数据都是对数据库全量拷贝,从节点压力会不会过大? 数据压力大到机器支撑不了的时候能否做到自动扩展? 在系统早期,数据量还小的时候不会引起太大的问题,但是随着数据量持续增多,后续迟早会出 ...
- 搭建高可用mongodb集群(一)——配置mongodb
在大数据的时代,传统的关系型数据库要能更高的服务必须要解决高并发读写.海量数据高效存储.高可扩展性和高可用性这些难题.不过就是因为这些问题Nosql诞生了. NOSQL有这些优势: 大数据量,可以通过 ...
随机推荐
- ABP框架系列之二十一:(Domain-Services-领域服务)
Introduction Domain Services (or just Service, in DDD) is used to perform domain operations and busi ...
- 用Dockerfile创建镜像--自动化部署tomcat+mysql+mycat
https://www.jianshu.com/p/a14b34386b41
- uniGUI经验几则
uniGUI经验几则 (2015-11-07 21:42:41) 转载▼ 标签: it 分类: uniGUI 1.uniTimer的妙用 很多时候,都会遇到在一个uniForm或者uniFrame加载 ...
- CPP之内存分配
new & delete expression 1. Introduction A new expression allocates and constructs an object of a ...
- 「WC2018」州区划分(FWT)
「WC2018」州区划分(FWT) 我去弄了一个升级版的博客主题,比以前好看多了.感谢 @Wider 不过我有阅读模式的话不知为何 \(\text{LATEX}\) 不能用,所以我就把这个功能删掉了. ...
- CS231中的python + numpy课程
本课程中所有作业将使用Python来完成.Python本身就是一种很棒的通用编程语言,现在在一些流行的库(numpy,scipy,matplotlib)的帮助下,它为科学计算提供强大的环境. 我们希望 ...
- 用redux-thunk异步获取数据
概述 最近学习redux,打算用redux-thunk给todo添加异步获取数据组件.记录下来,供以后开发时参考,相信对其他人也有用. 注意: 在todo下方,我异步获取我的react博客的标题,点击 ...
- DOMContentLoaded事件中使用异步
概述 我在之前的博文(Performance面板看js加载)中提到过,如果利用监听DOMContentLoaded事件的方式来加载js是不能优化加载的,不能够替代jquery中的ready方法,原因是 ...
- process(进程)
进程 指的是执行中程序的一个实例(instance). 新进程由fork() 与 execve() 等系统调用起始,然后执行,直到下达exit()系统调用为止. 操作系统内核里,称为调度器(sched ...
- Maven - 实例-4-依赖传递
这里以Eclipse创建Maven工程来演示. Setp-1 创建Maven项目 File ---> New ---> Maven Project ---> 默认勾选"Us ...