NOSQL -- mongoDB的了解与安装

首先看看什么是nosql:

我的理解:非关系型数据库,大多是以map形式存储,map<key,value>,适合存储,查询。redis也是nosql。

mongobd:

MongoDB 是由C++语言编写的,是一个基于分布式文件存储的开源数据库系统。

在高负载的情况下,添加更多的节点,可以保证服务器性能。

MongoDB 旨在为WEB应用提供可扩展的高性能数据存储解决方案。

MongoDB 将数据存储为一个文档,数据结构由键值(key=>value)对组成。MongoDB 文档类似于 JSON 对象。字段值可以包含其他文档,数组及文档数组。

我一般比较喜欢新鲜的东西,所以了解下mongodb。记录下

下载:

1.下载驱动:

https://www.mongodb.com/download-center#community

安装:

选则customer。-->点击next,-->finish

2.在当前目录下创建文件夹:

data

创建:mongo.config文件

3.在data目录下

创建db和log

4.在log中创建一个 mongo.log的空文本。

在mongo.config中编辑:

dbpath=D:\SoftWare\StduySoftWere\noSQL\data\db

logpath=D:\SoftWare\StduySoftWere\noSQL\data\log\mongo.log

5.使用dos命令:进入mongodb的bin下:

mongod --dbpath D:\SoftWare\StduySoftWere\noSQL\data\db

出现一下效果:

D:\SoftWare\StduySoftWere\noSQL\bin>mongod --dbpath D:\SoftWare\StduySoftWere\noSQL\data\db
2018-06-11T20:33:11.319-0700 I CONTROL [initandlisten] MongoDB starting : pid=988 port=27017 dbpath=D:\SoftWare\StduySoftWere\noSQL\data\db 64-bit host=MicroWin10-1953
2018-06-11T20:33:11.319-0700 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2018-06-11T20:33:11.321-0700 I CONTROL [initandlisten] db version v3.6.5
2018-06-11T20:33:11.324-0700 I CONTROL [initandlisten] git version: a20ecd3e3a174162052ff99913bc2ca9a839d618
2018-06-11T20:33:11.324-0700 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2o-fips 27 Mar 2018
2018-06-11T20:33:11.325-0700 I CONTROL [initandlisten] allocator: tcmalloc
2018-06-11T20:33:11.325-0700 I CONTROL [initandlisten] modules: none
2018-06-11T20:33:11.326-0700 I CONTROL [initandlisten] build environment:
2018-06-11T20:33:11.326-0700 I CONTROL [initandlisten] distmod: 2008plus-ssl
2018-06-11T20:33:11.326-0700 I CONTROL [initandlisten] distarch: x86_64
2018-06-11T20:33:11.327-0700 I CONTROL [initandlisten] target_arch: x86_64
2018-06-11T20:33:11.327-0700 I CONTROL [initandlisten] options: { storage: { dbPath: "D:\SoftWare\StduySoftWere\noSQL\data\db" } }
2018-06-11T20:33:11.328-0700 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=7611M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),cache_cursors=false,log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
2018-06-11T20:33:11.344-0700 I STORAGE [initandlisten] WiredTiger message [1528774391:343821][988:140730764704848], txn-recover: Set global recovery timestamp: 0
2018-06-11T20:33:11.360-0700 I CONTROL [initandlisten]
2018-06-11T20:33:11.360-0700 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2018-06-11T20:33:11.361-0700 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2018-06-11T20:33:11.361-0700 I CONTROL [initandlisten]
2018-06-11T20:33:11.361-0700 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost.
2018-06-11T20:33:11.361-0700 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server.
2018-06-11T20:33:11.362-0700 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP
2018-06-11T20:33:11.362-0700 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to
2018-06-11T20:33:11.364-0700 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the
2018-06-11T20:33:11.364-0700 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning.
2018-06-11T20:33:11.366-0700 I CONTROL [initandlisten]
2018-06-11T20:33:11.367-0700 I CONTROL [initandlisten]
2018-06-11T20:33:11.367-0700 I CONTROL [initandlisten] ** WARNING: The file system cache of this machine is configured to be greater than 40% of the total memory. This can lead to increased memory pressure and poor performance.
2018-06-11T20:33:11.367-0700 I CONTROL [initandlisten] See http://dochub.mongodb.org/core/wt-windows-system-file-cache
2018-06-11T20:33:11.368-0700 I CONTROL [initandlisten]
2018-06-12T11:33:11.369+0800 I STORAGE [initandlisten] createCollection: admin.system.version with provided UUID: 01a8af6d-02d7-4e9f-aa8c-b63f58b8a5bc
2018-06-12T11:33:11.375+0800 I COMMAND [initandlisten] setting featureCompatibilityVersion to 3.6
2018-06-12T11:33:11.379+0800 I STORAGE [initandlisten] createCollection: local.startup_log with generated UUID: b480a552-640b-471b-a869-8808a46734a2
2018-06-12T11:33:11.552+0800 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory 'D:/SoftWare/StduySoftWere/noSQL/data/db/diagnostic.data'
2018-06-12T11:33:11.556+0800 I NETWORK [initandlisten] waiting for connections on port 27017
2018-06-12T11:34:35.536+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64944 #1 (1 connection now open)
2018-06-12T11:34:35.547+0800 I NETWORK [conn1] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64944 (connection id: 1)
2018-06-12T11:34:35.547+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64945 #2 (2 connections now open)
2018-06-12T11:34:35.547+0800 I NETWORK [conn1] end connection 127.0.0.1:64944 (1 connection now open)
2018-06-12T11:34:35.548+0800 I NETWORK [conn2] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64945 (connection id: 2)
2018-06-12T11:34:35.549+0800 I NETWORK [conn2] end connection 127.0.0.1:64945 (0 connections now open)
2018-06-12T11:34:35.788+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64947 #3 (1 connection now open)
2018-06-12T11:34:35.850+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64949 #4 (2 connections now open)
2018-06-12T11:34:35.854+0800 I NETWORK [conn4] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64949 (connection id: 4)
2018-06-12T11:34:35.855+0800 I NETWORK [conn4] end connection 127.0.0.1:64949 (1 connection now open)
2018-06-12T11:34:36.000+0800 I NETWORK [conn3] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64947 (connection id: 3)
2018-06-12T11:34:36.001+0800 I NETWORK [conn3] end connection 127.0.0.1:64947 (0 connections now open)
2018-06-12T11:34:36.102+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64953 #5 (1 connection now open)
2018-06-12T11:34:36.103+0800 I NETWORK [conn5] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64953 (connection id: 5)
2018-06-12T11:34:36.103+0800 I NETWORK [conn5] end connection 127.0.0.1:64953 (0 connections now open)
2018-06-12T11:34:36.302+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64954 #6 (1 connection now open)
2018-06-12T11:34:36.303+0800 I NETWORK [conn6] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64954 (connection id: 6)
2018-06-12T11:34:36.303+0800 I NETWORK [conn6] end connection 127.0.0.1:64954 (0 connections now open)
2018-06-12T11:34:36.304+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64955 #7 (1 connection now open)
2018-06-12T11:34:41.417+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64964 #8 (2 connections now open)
2018-06-12T11:34:41.419+0800 I NETWORK [conn8] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64964 (connection id: 8)
2018-06-12T11:34:41.419+0800 I NETWORK [conn8] end connection 127.0.0.1:64964 (1 connection now open)
2018-06-12T11:34:41.419+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64965 #9 (2 connections now open)
2018-06-12T11:34:41.424+0800 I NETWORK [conn7] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64955 (connection id: 7)
2018-06-12T11:34:41.428+0800 I NETWORK [conn7] end connection 127.0.0.1:64955 (1 connection now open)
2018-06-12T11:34:41.432+0800 I NETWORK [conn9] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64965 (connection id: 9)
2018-06-12T11:34:41.438+0800 I NETWORK [conn9] end connection 127.0.0.1:64965 (0 connections now open)
2018-06-12T11:34:41.668+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64967 #10 (1 connection now open)
2018-06-12T11:34:44.143+0800 I NETWORK [conn10] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64967 (connection id: 10)
2018-06-12T11:34:44.144+0800 I NETWORK [conn10] end connection 127.0.0.1:64967 (0 connections now open)
2018-06-12T11:34:44.445+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64971 #11 (1 connection now open)
2018-06-12T11:34:44.452+0800 I NETWORK [conn11] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64971 (connection id: 11)
2018-06-12T11:34:44.452+0800 I NETWORK [conn11] end connection 127.0.0.1:64971 (0 connections now open)
2018-06-12T11:34:44.452+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64972 #12 (1 connection now open)
2018-06-12T11:34:44.455+0800 I NETWORK [conn12] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from 127.0.0.1:64972 (connection id: 12)
2018-06-12T11:34:44.455+0800 I NETWORK [conn12] end connection 127.0.0.1:64972 (0 connections now open)
2018-06-12T11:34:44.699+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64974 #13 (1 connection now open)
2018-06-12T11:35:00.607+0800 I NETWORK [conn13] end connection 127.0.0.1:64974 (0 connections now open)
2018-06-12T11:35:00.909+0800 I NETWORK [listener] connection accepted from 127.0.0.1:64988 #14 (1 connection now open)
2018-06-12T11:35:00.914+0800 I NETWORK [listener] co

你可以去访问mongodb的网页

然后添加windows服务

进入管理员命令操作一下:

mongod --config D:\SoftWare\StduySoftWere\noSQL\mongo.config --install --serviceName "Mongodb"

然后进入服务:

然后就完成了mongodb服务的安装。。。

然后安装mongodb的可视化工具:Root 3

我使用的是它。免费的。

现在我们创建一个连接

然后出现这个:

然后右键有各种选择和操作

NOSQL -- mongoDB的了解与安装(Wins10)的更多相关文章

  1. NoSql非关系型数据库之MongoDB应用(二):安装MongoDB可视化工具

    业精于勤,荒于嬉:行成于思,毁于随. 我们上次说到NoSql非关系型数据库之MongoDB应用(一):安装MongoDB服务 这次我们介绍安装  NoSQL Manager for MongoDB 可 ...

  2. mongodb 3.0下载安装、配置及mongodb最新特性、基本命令教程详细介绍

    mongoDB简介(本文由www.169it.com搜集整理) MongoDB是一个高性能,开源,无模式的文档型数据库,是目前在IT行业非常流行的一种非关系型数据库(NoSql).它在许多场景下可用于 ...

  3. 二十三、MongoDb 数据库介绍、安装、启动和连接(非关系型数据库)

    1.数据库和文件的主要区别 1. 数据库有数据库表.行和列的概念,让我们存储操作数据更方便2. 数据库提供了非常方便的接口,可以让 nodejs.php java .net 很方便的实现增加修改删除功 ...

  4. MongoDB第一天(MongoDB的简介和安装)

    MongoDB 简介 什么是 MongoDB MongoDB 是一个基于分布式文件存储的数据库.由 C++语言编写.在为 WEB 应用提供可扩展的高性能数据存储解决方案. MongoDB 是一个介于关 ...

  5. MongoDB的下载与安装

      MongoDB的下载与安装 一.简介 MongoDB 是一个基于分布式文件存储的数据库.由 C++ 语言编写.旨在为 WEB 应用提供可扩展的高性能数据存储解决方案.MongoDB 是一个介于关系 ...

  6. MongoDB的快速手动安装

    上一篇文章<MongoDB.WebIDE:升级版的Mongodb管理工具>漏了点东西:就是关于MongoDB主从库的安装配置和启动.网上关于MongoDB的安装有大量的文章供大家学习.我这 ...

  7. MongoDB Linux下的安装和启动(转)

    1. 下载MongoDB,此处下载的版本是:mongodb-linux-i686-1.8.1.tgz.tar. http://fastdl.mongodb.org/linux/mongodb-linu ...

  8. PHP学习之-Mongodb在Windows下安装及配置

    Mongodb在Windows下安装及配置 1.下载 下载地址:http://www.mongodb.org/ 建议下载zip版本. 2.安装 下载windows版本安装就和普通的软件一样,直接下一步 ...

  9. (转)NoSQL——Redis在win7下安装配置的学习一

    NoSQL——Redis在win7下安装配置的学习一   有些也是从网上看来的 1.下载安装 Redis它没有windows的官方版本,但是又非官方的版本,到官网上去下载相应的版本,我的电脑是win7 ...

随机推荐

  1. DIV+CSS+PS实现背景图的三层嵌套以及背景图的合并

    传说中的“三层嵌套技术”. 一.背景图合并: div+css+ps合图相结合的技术:通过精确到1px的css设置,使用ps合成背景图片,特别是小图片合并,来完成页面效果.         首先讲讲三层 ...

  2. js点击显示隐藏

    这个栗子…… 可以不吃,先预设一个变量表示div的状态,例子中0是显示的,一开始是隐藏的.当点击时判断状态是显示0的还是隐藏1的:如果是显示的就把div隐藏,再把变量改变为1.再次点击时把会判断到变量 ...

  3. Go 定长的数组

    1.Go 语言数组的简介 几乎所有的计算机语言都有数组,应用非常的广泛.同样,在 Go 语言中也有数组并且在数组的基础上还衍生出了切片(slice). 数组是一系列同一类型数据的集合,数组中包含的每个 ...

  4. JMeter 生成精度度为分钟的时间戳文件名

    import java.util.Calendar; import java.util.Date; import java.util.TimeZone; import java.text.Simple ...

  5. Codeforces 786 C. Till I Collapse

    题目链接:http://codeforces.com/contest/786/problem/C 大力膜了一发杜教的代码感觉十分的兹瓷啊! 我们知道如果$k$是给定的我们显然是可以直接一遍$O(n)$ ...

  6. hdu 6071 Lazy Running 最短路建模

    Lazy Running Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 524288/524288 K (Java/Others) P ...

  7. 配置多个版本的jdk

    引言: 由于公司有多个项目都需要我开发,而各个项目所依赖的jdk版本又不同,因此需要配置多个jdk; 配置方法: 什么也不说了,直接上图: 然后在其他需要制定Tomcat的地方直接引用JAVA_HOM ...

  8. Vuex结合 async/await 优雅的管理接口请求

    先看看 async/await 的语法 async 函数返回一个 Promise 对象 async 函数内部 return 返回的值.会成为 then 方法回调函数的参数. 1 2 3 4 async ...

  9. 学习笔记9—python数据表的合并(join(), merge()和concat())

    merage# pandas提供了一个类似于关系数据库的连接(join)操作的方法<Strong>merage</Strong>,可以根据一个或多个键将不同DataFrame中 ...

  10. 使用Qss设置QT程序界面的样式和皮肤

    1         使用Qss设置QT程序界面的样式和皮肤 1.1  Qss的功能 Qt程序界面中控件的背景图片.大小.字体颜色.字体类型.按钮状态变化等属性可以通过Qss文件来设置,美化UI界面.实 ...