当前位置:网站首页>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
customCustomize 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 isMongoDBThe 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
边栏推荐
- CANN算子:利用迭代器高效实现Tensor数据切割分块处理
- 实战:fabric 用户证书吊销操作流程
- 7、 Software package management
- C#/VB. Net to add text / image watermarks to PDF documents
- "Pre training weekly" issue 52: shielding visual pre training and goal-oriented dialogue
- Samsung's mass production of 3nm products has attracted the attention of Taiwan media: whether it can improve the input-output rate in the short term is the key to compete with TSMC
- 模块化笔记软件综合评测:Craft、Notion、FlowUs
- Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
- jsonp
- 数据库锁表?别慌,本文教你如何解决
猜你喜欢

Flet教程之 03 FilledButton基础入门(教程含源码)(教程含源码)

从0到1建设智能灰度数据体系:以vivo游戏中心为例

Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
高效!用虚拟用户搭建FTP工作环境

Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example

Comparative study of the gods in the twilight Era

N++ is not reliable

Reinforcement learning - learning notes 1 | basic concepts

After installing vscode, the program runs (an include error is detected, please update the includepath, which has been solved for this translation unit (waveform curve is disabled) and (the source fil

Practice: fabric user certificate revocation operation process
随机推荐
游戏启动后提示安装HMS Core,点击取消,未再次提示安装HMS Core(初始化失败返回907135003)
Dry goods sorting! How about the development trend of ERP in the manufacturing industry? It's enough to read this article
[AI system frontier dynamics, issue 40] Hinton: my deep learning career and research mind method; Google refutes rumors and gives up tensorflow; The apotheosis framework is officially open source
Solution: how to delete the information of Jack in two tables with delete in one statement in Oracle
一个数据人对领域模型理解与深入
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
Implementation mode and technical principle of MT4 cross platform merchandising system (API merchandising, EA merchandising, nj4x Merchandising)
AI 绘画极简教程
Web知识补充
SQL language
Don't turn down, three sentences to clarify the origin of cross domain resource request errors
【云原生 | Kubernetes篇】深入了解Ingress(十二)
After installing vscode, the program runs (an include error is detected, please update the includepath, which has been solved for this translation unit (waveform curve is disabled) and (the source fil
go-zero微服务实战系列(九、极致优化秒杀性能)
7、 Software package management
Flet教程之 03 FilledButton基础入门(教程含源码)(教程含源码)
Runc hang causes the kubernetes node notready
XML入门二
mysql三级分销代理关系存储
A data person understands and deepens the domain model