1024programmer Java MongoDB: Install the unzipped version of MongoDB database

MongoDB: Install the unzipped version of MongoDB database

1. Statement

The current content is for my notes. Install the MongoDB database (decompressed version) under Windows, use MongoDB Compass to operate the current database, and write notes here

2. Download MongoDB

MongoDB download location
MongoDB: Install the decompressed version of the MongoDB database

3. Unzip the current MongoDB database

1. When installing the decompressed version, be careful not to place it in the Chinese directory, otherwise the installation may report an error

2. Unzip the MongoDB compressed package
MongoDB: Installation  Decompressed version of MongoDB database

4. Create MongoDB configuration file

1. Create a configuration file: mongo.conf in the current mongodb-4.2.2, its content is:

dbpath=D:/databases/mongodb-4.2.2/data
logpath=D:/databases/mongodb-4.2.2/logs/mongo.log
logappend=true
journal=true
quiet=true
port=27017

2. Add files and folders to the current mongodb-4.2.2, consistent with mongo.conf (dbpath, logpath)
MongoDB: Install the decompressed version of MongoDB database

5. Start installing the MongoDB service

Note: Be sure to use administrator mode to open cmd

1. Use cmd to switch to the bin directory of the current mongodb decompression location

2. Use cmd to start installing the mongodb service

mongod –config D:\databases\mongodb-4.2.2\mongo.conf –install -serviceName “MongoDB”

Check the log file to see whether the current MongoDB installation is successful
MongoDB: Install the decompressed version of MongoDB database

3. Check whether the service is installed successfully
MongoDB:  Install the decompressed version of MongoDB database

6. Summary

Since I have installed it successfully, the above content is purely my personal opinion. If you have any questions, please contact me!

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/759212

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索