MongoDB learning materials-1

Source: Internet
Author: User
Tags create mongodb mongodb 32 bit

 

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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.