当前位置:网站首页>Basic tutorial for installing monggodb in win10
Basic tutorial for installing monggodb in win10
2022-06-29 23:55:00 【Dried persimmon aint】

1、 download
MongoDB Precompiled binary package download address :MongoDB Community Download | MongoDBDownload the Community version of MongoDB's non-relational database server from MongoDB's download center.https://www.mongodb.com/try/download/community

2、 install
1) Choose to accept the license agreement , Click on Next next step ;

2) Click on Custom Button to specify the installation directory ;

3) Click on Browser Button to select the specified installation directory folder , It is best to create an installation beforehand MongoDB Folder ! Pay attention to the path , if Location The position shows the following D:\Work\, As mentioned above, you need to create a separate folder as the specific installation path , Then click on Next Go to the next step ;

4) Uncheck the [Install MongoDB Compass], Be sure to cancel or the installation will be very slow !, Then continue to click Next Then enter the final automatic installation process , Wait for the installation to complete .

notes :MongoDB Compass by MongoDB Visual management tools , It can be installed separately if necessary in the later stage , Download address :MongoDB Compass Download | MongoDB
2.1、 Environment variable configuration
Control panel - System - Advanced system setup - System environment variable

3、 First create the storage location of database files
stay MongoDB Create data, stay data Next create db:D:\software\MongoDB\data\db
Because of startup mongodb Before service, you need to create a folder for storing database files , Otherwise the command will not be created automatically , And it doesn't start successfully .
4、 start-up MongoDB service
1. open cmd Command line
2. Get into D:\software\MongoDB\bin Catalog ( Be careful : First enter d: Get into d disc , Then input cd D:\software\MongoDB\bin)
3. Enter the following command to start mongodb service :mongod --dbpath D:\software\MongoDB\data\db
That is to start under the path of the database file created in the third step .
5. Type in the browser http://localhost:27017 (27017 yes mongodb Port number ) see , If the display :
It looks like you are trying to access MongoDB over HTTP on the native driver port.
To start successfully otherwise unsuccessful
said , Successful connection . If it doesn't work , You can check whether the port is occupied .
But locally windows“ service ” in , There is no configuration mongodb Service , Can open “ service ” look down

6、 Configure local windows mongodb service
This can be set to Boot up , It can be started and closed manually , From the command line net start MongoDB start-up . This configuration will be very convenient .
There is no explanation here Self configuring .
边栏推荐
- C pointer advanced 1-- > character pointer, array pointer, pointer and array parameter transfer, function pointer
- 【微信小程序】认识小程序项目的基本组成结构
- Solr basic operation 2
- matplotlib matplotlib可视化之柱状图plt.bar()
- The concept and significance of mean, variance, standard deviation and covariance
- [leetcode] a number that appears only once [136]
- Official website of Greentree
- Solr基础操作5
- 小程序插件接入、开发与注意事项
- RRDTOOL draws MRTG log data
猜你喜欢

Matplotlib plt Hist() parameter explanation

穿越过后,她说多元宇宙真的存在

Teach you step by step to install webwind notes on edge browser
solo 博客皮肤导入 skins 文件夹后出现 500 错误

云和恩墨盖国强,识别它、抓住它,在国产数据库沸腾以前

Binary search tree 230 The element with the smallest K in the binary search tree 1038 From binary search tree to larger sum tree

FPGA开发(1)——串口通信

Et la tarte aux framboises 4? Quels sont les jeux possibles?

Procurement intelligence is about to break out, and the "3+2" system of Alipay helps enterprises build core competitive advantages

After crossing, she said that the multiverse really exists
随机推荐
Et la tarte aux framboises 4? Quels sont les jeux possibles?
深度学习的历史
Leetcode (633) -- sum of squares
CE second operation
Solr basic operation 5
LC: maximum subarray and
一步步教你在Edge浏览器上安装网风笔记
西门子低代码平台通过Database Connector 连接Mysql 实现增删改查
C pointer advanced 1-- > character pointer, array pointer, pointer and array parameter transfer, function pointer
AI赋能新零售,「智」胜之道在于生态思维|数智夜话直播精选摘录
Gradle serialization 7- configuration signature
What is flush software? Is it safe to open an account online?
Start harvesting! Nailing: adjust the maximum number of free users of "nailing team". If the number exceeds 10, it will not work normally
Matplotlib plt Hist() parameter explanation
@Scheduled annotation pit, I stepped on it for you
Pytest initializing and cleaning up the environment
Halcon实用:焊点检出设计思路
FPGA开发(2)——IIC通信
Profit distribution and taxation of funds
[leetcode] a number that appears only once [136]