Today tried to install MongoDB in WINDOWS7 environment, encountered some problems, here to do a record.
- Download software, download the installation package at MongoDB website mongodb-win32-x86_64-2008plus-ssl-3.4.3-signed
- After the download is complete, I have modified the installation location and placed it under the directory "C:\mongodb"
* All the way next installation is complete. Next is the most problematic setting for MONGODB services.
- Create the Data directory and the logs directory under directory "C:\mongodb" and create the file in the logs directory Mongodb.log
- Create the mongodb.conf under directory "C:\mongodb" and fill in the configuration information:
dbpath=C:\mongodb\data
logpath=C:\mongodb\logs\mongo.log
logappend=true
journal=true
quiet=true
port=27017
- Start the CMD interface and execute the following command:
-
CD C : \mongodb\b in
-
mongod -- config "C:\mongodb\mongo.conf" -- logpath "C:\mongodb\logs\mongo.log" -- install -- servicename "MongoDB"
-
mongod exe -- remove -- servicename "MongoDB" #如果需要移除这个服务的话
- Browser access http://127.0.0.1:27017 to see the following interface
Installing MongoDB under Windows