First, the preparatory work
Source file Mongodb-win32-x86_64-2008plus-ssl-3.4.10-signed.msi
installation directory D:\mongodb
1. Create several folders as follows: Database path (data directory), log path (logs directory), and log file (Mongo.log file)
2. Create the configuration file mongo.conf, the file contents are as follows:
#数据库路径 dbpath=d:\mongodb\data #日志输出文件路径 logpath=d:\mongodb\logs\mongo.log #错误日志采用追加模式 Logappend=true #启用日志文件, Journal=true #这个选项可以过滤掉一些无用的日志信息 is enabled by default and set to False if debugging is required quiet=true #端口号 defaults to 27017
3. Start MongoDB Service
Mongod--config "D:\mongodb\mongo.conf"
Specify profile Startup
After execution, open the browser http://127.0.0.1:27017/
--------> Start successful default port 27017
Using the Client tool (Robo 3T) to connect MongoDB
Reference:
http://blog.csdn.net/qq_27093465/article/details/54574948
The installation chapter of MongoDB Learning