当前位置:网站首页>Node mongodb installation
Node mongodb installation
2022-07-04 13:42:00 【Hua Weiyun】
MongoDB database
Definition :MongoDB Is a database based on distributed file storage . from C++ Language writing . For the purpose of WEB Applications provide scalable, high-performance data storage solutions .
MongoDB Is a product between relational and non-relational databases , Non-relational databases are the most versatile , Most like a relational database .
Installation address :https://www.MongoDB.com/try/download/community
Relational database and non relational database
Speaking of MongoDB We must introduce relational database and non relational database .
The most typical data structure of relational database is table , A data organization consisting of two-dimensional tabular models and their connections .
A non relational database is not strictly a database , It should be a collection of data structured storage methods , It can be document or key value equivalence . Such as ,map The same key value pair relationship .
Advantages of non relational database :
1、 Flexible format : The format for storing data can be key,value form 、 Document form 、 Picture form and so on , Document form 、 Picture form and so on , Flexible use , Wide application scenarios , Relational databases only support basic types .
2、 Fast :nosql You can use hard disk or ram as a carrier , The relational database can only use hard disk ;
3、 High scalability ;
4、 The cost is low :nosql Database deployment is simple , It's basically open source software .
shortcoming :
1、 Does not provide sql Support , The cost of learning and using is high ;
2、 No transactions ;
3、 The data structure is relatively complex , It's a little bit less in terms of complex queries .
PS: This time it's just for use , The front-end personnel have less requirements for their mastery than the back-end
MongoDB install
Database has been mentioned on the official website before msi Download it , Next, start installing
- Install as prompted , The first two choices next that will do
- And then you can use
custom
Customize the installation directory
- Next click next Can be installed
PS: There is a pit during installation , If you check
Install MongoDB Compass
, Then it will jam during installation , Because this isMongoDB
The visual interface provided , But when downloading, it will be downloaded from abroad .
MongoDB start-up
here ,MongoDB It's already installed , Now start to test whether it is successful
In the previously customized installation directory , There is one bin Folder , There are mongod.exe file , This program is used to start mongodb Server's .
Where you want to store data , Create a folder , such as db
, Here I am
And then in the previous bin In the folder , Use cmd Open the bread , Input mongod --dbpath=/mongodb/Server/data/db
Because we didn't specify mongodb The port number of the service , So it starts by default 27017 window .
Open the browser , Range address http://127.0.0.1:27017/, You can see the following information
It looks like you are trying to access MongoDB over HTTP on the native driver port.
MongoDB Visual interface
about MongoDB database , It's inconvenient to use it in the command controller interface all the time , have access to navicat, It can also be used directly MongoDB Provide a graphical interface Compass
.
Download address :https://www.MongoDB.com/try/download/compass?jmp=docs
Compass
The graphical interface can be used after it is basically downloaded and opened
Click on connect Button , Then it will connect to the local 27017 In the database .
After successful connection , Click the plus sign in the lower left corner of the interface +, You can create a database
Next, you can operate the database in the graphical interface
边栏推荐
- XML入门三
- 提高MySQL深分页查询效率的三种方案
- AI 绘画极简教程
- Database lock table? Don't panic, this article teaches you how to solve it
- 比量子化学方法快六个数量级,一种基于绝热状态的绝热人工神经网络方法,可加速对偶氮苯衍生物及此类分子的模拟
- In 2022, it will be es2022 soon. Do you only know the new features of ES6?
- 一个数据人对领域模型理解与深入
- 【云原生 | Kubernetes篇】深入了解Ingress(十二)
- ASP.NET Core入门一
- n++也不靠谱
猜你喜欢
Talk about the design and implementation logic of payment process
【AI系统前沿动态第40期】Hinton:我的深度学习生涯与研究心法;Google辟谣放弃TensorFlow;封神框架正式开源
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
Reinforcement learning - learning notes 1 | basic concepts
三星量产3纳米产品引台媒关注:能否短期提高投入产出率是与台积电竞争关键
数据库锁表?别慌,本文教你如何解决
After the game starts, you will be prompted to install HMS core. Click Cancel, and you will not be prompted to install HMS core again (initialization failure returns 907135003)
上汽大通MAXUS正式发布全新品牌“MIFA”,旗舰产品MIFA 9正式亮相!
从0到1建设智能灰度数据体系:以vivo游戏中心为例
聊聊支付流程的设计与实现逻辑
随机推荐
runc hang 导致 Kubernetes 节点 NotReady
C语言职工管理系统
Apache server access log access Log settings
Node の MongoDB 安装
使用宝塔部署halo博客
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
光环效应——谁说头上有光的就算英雄
Golang sets the small details of goproxy proxy proxy, which is applicable to go module download timeout and Alibaba cloud image go module download timeout
Solution: how to delete the information of Jack in two tables with delete in one statement in Oracle
C#/VB. Net to add text / image watermarks to PDF documents
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
Using nsproxy to forward messages
ASP.NET Core入门一
Simple understanding of binary search
干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?
WPF double slider control and forced capture of mouse event focus
一文掌握数仓中auto analyze的使用
Reptile exercises (I)
Read the BGP agreement in 6 minutes.