当前位置:网站首页>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
边栏推荐
- 提高MySQL深分页查询效率的三种方案
- Go zero micro service practical series (IX. ultimate optimization of seckill performance)
- Use fail2ban to prevent password attempts
- 高质量软件架构的唯一核心指标
- [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
- 【AI系统前沿动态第40期】Hinton:我的深度学习生涯与研究心法;Google辟谣放弃TensorFlow;封神框架正式开源
- Optional values and functions of the itemized contenttype parameter in the request header
- Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
- 使用Scrcpy投屏
- PostgreSQL 9.1 soaring Road
猜你喜欢

Runc hang causes the kubernetes node notready

2022年中国移动阅读市场年度综合分析

数据库锁表?别慌,本文教你如何解决

高质量软件架构的唯一核心指标

JVM系列——栈与堆、方法区day1-2

eclipse链接数据库中测试SQL语句删除出现SQL语句语法错误

Database lock table? Don't panic, this article teaches you how to solve it

Oracle 被 Ventana Research 评为数字创新奖总冠军

【AI系统前沿动态第40期】Hinton:我的深度学习生涯与研究心法;Google辟谣放弃TensorFlow;封神框架正式开源

Dgraph: large scale dynamic graph dataset
随机推荐
《预训练周刊》第52期:屏蔽视觉预训练、目标导向对话
"Pre training weekly" issue 52: shielding visual pre training and goal-oriented dialogue
实时云交互如何助力教育行业发展
Iptables foundation and Samba configuration examples
PostgreSQL 9.1 飞升之路
n++也不靠谱
CommVault cooperates with Oracle to provide metallic data management as a service on Oracle cloud
求解:在oracle中如何用一条语句用delete删除两个表中jack的信息
Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?
Reptile exercises (I)
聊聊支付流程的设计与实现逻辑
6 分钟看完 BGP 协议。
Backgroundworker usage example
c#数组补充
The old-fashioned synchronized lock optimization will make it clear to you at once!
CTF竞赛题解之stm32逆向入门
AI painting minimalist tutorial
CTF competition problem solution STM32 reverse introduction
诸神黄昏时代的对比学习
[cloud native | kubernetes] in depth understanding of ingress (12)