MongoDB installation and Mongo-c-driver installation using __ Database

Source: Internet
Author: User
Tags mongodb mongodb find

MongoDB steps:

1. Google search MongoDB find the official website to download: http://www.mongodb.org/

2. Decompression: Tar zvxf mongodb-linux-i686-2.4.3.tgz generate a mongodb-linux-i686-2.4.3 folder

3. Enter the Mongodb-linux-i686-2.4.3/bin folder, which binaries can be executed. Eg:#./mongod This is to open the MongoDB database service.

4. Error:dbpath (/data/db/) does not exist is generally present. This error. How to do it. Suggest a/data/db/folder on the line Ah ...

5. Open #./mongodb Database service in privileged mode

6. Open Client: >./mongo


Installation of Mongo-c-driver:

1. Enter GitHub website Download: Https://github.com/mongodb/mongo-c-driver Choose Zip, not easy to see, but to find Oh ~

2. Decompression (zip file How to unpack their own look, or: The right key-extract to the current folder) after the Mongo-c-driver-master folder appears.

3. Enter the Mongo-c-driver-master folder,> make and then sudo make install

4. Installation complete, enter the verification stage: remove mongo-c-driver-master/docs/examples/example.c

GCC--std=c99-o example.out example.c-i/usr/local/include/-l/usr/local/lib/-LMONGOC

5. Run down and see if you can pass. (# 0.7 2012-11-19 can pass, but # # 0.7.1 2013-1-7 can not pass. I don't know why, the higher the version the worse. )


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.