MongoDB Installation and Configuration--win10December 31, 2017 17:17:39Hits: 24031. Download
下载链接:https://www.mongodb.com/download-center?jmp=nav#community
2. Installation
按提示安装即可1. Complete:完整安装2. Custom:自定义安装,可选择安装路径和安装组件
3. Configuration
[C:\Program Files\MongoDB\Server\3.6]
2. Create three folders in the MongoDB installation directory (you can also customize the selection placement path, where I choose to place the E:\MongoDB\) (1) Under the Conf folder, create a new Mongodb.config file with the following contents: Dbpath=e:\mongodb\data #数据库路径logpath =e:\ Mongodb\logs\mongodb. log #日志输出文件路径logappend = True #错误日志采用追加模式journal =true #启用日志文件, Quiet=true #过滤掉无用的日志信息, if need to debug use please set to Falseport=27017 #端口号 default to 27017 (2) under Logs folder, new Mongodb. Log file
4. Add As System service
将MongoDB安装目录添加到系统环境变量 PathC:\Program Files\MongoDB\Server\3.6\bin
Add as System service PowerShell (Admin)
Mongod.exe--config E:\MongoDB\conf\mongodb.config--install--servicename "MongoDB"
Start the service
net start MongoDB
5. MongoDB Compass Community Management MongoDB
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. 78942448
MongoDB Installation and Configuration--win10