当前位置:网站首页>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 .
边栏推荐
- 除子
- Siemens low code platform connects MySQL through database connector to realize addition, deletion, modification and query
- modelsim的TCL脚本的define incdir命令解析
- 剑指 Offer 15. 二进制中1的个数
- Head on Amway! Good looking and practical motor SolidWorks model material see here
- 简单理解B树和B+树
- Remember the process of checking online MySQL deadlock. You should not only know curd, but also know the principle of locking
- RRDTOOL draws MRTG log data
- Matlab exercises -- program control process exercise
- Overseas digital authentication service provider advance AI was selected into the "2022 brand sea Service Market Research Report" of equalocean
猜你喜欢

6.29日刷题题解

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

剑指 Offer 14- II. 剪绳子 II

FPGA Development (1) -- serial port communication

Use of jetpack's room in combination with flow

Halcon practical: design idea of solder joint detection

333333333333333333333333333333
![[译]在软件开发行业工作 6 年后,那些年我曾改过的观念](/img/69/c9829b14223f1e8fd3137d0750d8f7.png)
[译]在软件开发行业工作 6 年后,那些年我曾改过的观念

數莓派 4怎麼樣?可能的玩法有哪些?

Software testing interface testing postman testing tool interface testing process execution interface testing interface associated environment variables and global variables built-in dynamic parameter
随机推荐
Matlab exercises -- program control process exercise
Metaq cluster installation test
MetaQ集群安装测试
Sword finger offer 13 Range of motion of robot
云服务器的安全设置常识
High performance and high availability computing architecture of "microblog comments" in microblog system
Solr基础操作2
FPGA Development (1) -- serial port communication
Official website of Greentree
FPGA开发(1)——串口通信
Matplotlib plt Hist() parameter explanation
Collection! Have you ever used these tools to improve programmer productivity?
Pytest initializing and cleaning up the environment
搭建企业级NTP时间服务器
数莓派 4怎么样?可能的玩法有哪些?
Set up security groups, record domain names, and apply for SSL certificates
Sword finger offer 14- I. cut rope
Divisor
除子
Halcon实用:焊点检出设计思路