1. go firstDownload http://www.mongodb.org/downloads
Here, the Windows XP system 2.0.7 is used,
Create a folder MongoDB on drive C, download the folder, and decompress it here (you can customize the location). In the MongoDB folder, create data, logs folder, and data as the database storage location, logs is the storage location of log files. Create MongoDB. Log in logs
[Environment variable c: \ MongoDB \ bin]
Go to cmd:
C: \ Documents ents and Settings \ Administrator> Cd C: \ MongoDB \ bin
Install mongdb
C: \ MongoDB \ bin> mongod -- dbpath c: \ MongoDB \ data -- logpath c: \ MongoDB \ logs \ MongoDB
. Log -- install
All output going to: C: \ MongoDB \ logs \ MongoDB. Log
Start the mangodb database:
C: \ MongoDB \ bin> mongod -- dbpath c: \ MongoDB \ data
Mon Sep 10 09:29:55
Mon Sep 10 09:29:55 warning: 32-bit servers don't have journaling enabled by def
Ault. Please use -- journal if you want durability.
Mon Sep 10 09:29:55
Mon Sep 10 09:29:55 [initandlisten] MongoDB starting: pid = 4372 Port = 27017 dbpat
H = c: \ MongoDB \ data 32-bit host = 8sc3zqdafabdn4.7
Mon Sep 10 09:29:55 [initandlisten]
Mon Sep 10 09:29:55 [initandlisten] ** Note: When Using MongoDB 32 bit, you are
Limited to about 2 gigabytes of data
Mon Sep 10 09:29:55 [initandlisten] ** see http://blog.mongodb.org/post/13
7788967/32-bit-Limitations
Mon Sep 10 09:29:55 [initandlisten] ** with -- journal, the limit is lower
Mon Sep 10 09:29:55 [initandlisten]
Mon Sep 10 09:29:55 [initandlisten] DB version v2.0.7, pdfile version 4.5
Mon Sep 10 09:29:55 [initandlisten] git version: 875033920e8869d284f32119413543f
A475227bf
Mon Sep 10 09:29:55 [initandlisten] Build info: Windows Sys. getwindowsversion (MA
Jor = 6, minor = 0, build = 6002, platform = 2, service_pack = 'service pack 2') boost_lib
_ Version = Limit 42
Mon Sep 10 09:29:55 [initandlisten] Options: {dbpath: "C: \ MongoDB \ data "}
Mon Sep 10 09:29:55 [websvr] admin Web Console waiting for connections on Port 2
8017
Mon Sep 10 09:29:55 [initandlisten] waiting for connectionon port 27017
Indicates that the instance is successfully started. The default port is 270.17
Enter http: // localhost: 27017/in the browser/
Display:
You are trying to access MongoDB on the native driver port. For HTTP diagnostic access, add 1000 to the port number
Success