http://blog.csdn.net/t_ells/article/details/50265889
MongoDB Latest version Download in the official website of the Download menu: Http://www.mongodb.org/downloads decompression mongodb-win32-x86_64-2.6.6.zip, create path C:\mongodb, Will extract the bin file copy to this folder under
C:\mongodb set up the Data folder C:\mongodb\data, and then set up Db,log two folders, this MongoDB has the following folder
Create a log file under the log folder MongoDB.log, i.e. C:\mongodb\data\log\MongoDB.log
Program Startup mode:
Run Cmd.exe into the DOS hit interface
>CD C:\mongodb\bin
> C:\mongodb\bin>mongod-dbpath "C:\mongodb\data\db"
Execute this command the MongoDB database file is created to the C:\mongodb\data\db directory, and you see the success prompt sucess the last line of the command (waiting for connections on port 27017), at which time the database is started, The interface for the MONGO startup program, after the shutdown can be directly double-click the bin under the Mongod.exe, start the program, then run Mongo.exe
To install MongoDB as a Windows service:
Run Cmd.exe
> CD C:\mongodb\bin
> C:\mongodb\bin>mongod--dbpath "C:\mongodb\data\db"--logpath "C:\mongodb\data\log\MongoDB.log"--install-- ServiceName "MongoDB"
Here MongoDB.log is the start of the log file,--servicename "MongoDB" service named MongoDB
>net Start MongoDB (open service)
>net Stop MongoDB (off service)
If you start a service error, you need to turn off other programs that use it, delete mongod.lock, and then try multiple times
Windows cannot start MONGO DB Service error: 1067
MongoDB Install directory \data\ Delete Mongod.lock under this folder
Next Install Pymongo
https://pypi.python.org/pypi/pymongo/
Here download the corresponding file, suffix name is. Egg, this is a compressed format, download a alzip can be opened
However, when I opened it, I did not find the corresponding setup.py, so I simply let it install itself
Python-m Easy_install Pymongo
Connect to database with Mongovue client, error
MONGO run Error: Failed to connect 127.0.0.1:27017,reason:errno:10061 cannot connect because the target computer is actively rejecting
http://blog.csdn.net/qq_16956581/article/details/44317057
The reason is MongoDB service is not open, open the service problem can be solved, open service command: Mongod--dbpath "D:\mongodb\data
Service can not start, delete mongod.lock also not, try to create a new CFG file and then install on it
# #数据文件
dbpath=e:\ruanjian\mongodb\data
# #日志文件
logpath=e:\ruanjian\mongodb\log\mongo.log
Mongod.exe--config E:\ruanjian\MongoDB\mongod.cfg--remove
mongod.exe--config E:\ruanjian\MongoDB\mongod.cfg- -install
Windows Cannot start MongoDB service error 1067: Process terminated unexpectedly
Http://www.cnblogs.com/xiaoit/p/3872790.html
As long as you operate the MongoDB database, the service will remain open.
MongoDB in the graphics client, the feeling Mongovue is not good to use, recommended Robomongo