MongoDB installation, mongodb_php tutorial

Source: Internet
Author: User
Tags install mongodb

MongoDB installation, MongoDB


1. Prepare the required tools

1) Windows 7 64bit

2) MongoDB Browse

2. Installation

1) Unzip the mongodb-win32-x86_64-3.0.3.zip to the D:\program_files\MongoDB

2) d:\program_files\MongoDB\bin Add to environment variable %mongo%

3) Create a directory %mongo%\data\db for storing the database

4) Create a directory %mongo%\data\log for storing logs

5) Create and edit the configuration file %mongo%\mongod.cfg

Dbpath=D:\program_files\MongoDB\data\dblogpath=d:\program_files\mongodb\data\log\mongo.log

6) Install MongoDB as a service

Run the following command with administrator privileges to create the MongoDB service

" \ " D:\program_files\MongoDB\bin\mongod.exe\"  --service--config=\"D:\program_files\ Mongodb\mongod.cfg\""

7) Start the service

net start MongoDB

3. Use

1) Start the command line and enter MONGO

2) Show DBS

3) Use test

4) Insert

5) Find

4. PHP Development

1) Build PHP Environment Browse

2) Download the MongoDB PHP extension Browse and put it in the %php%\ext Directory

3) Modify the php.ini, add the following code

Extension=php_mongo.dll

4) Restart Apache server

5) MongoDB PHP Manual Browse

http://www.bkjia.com/PHPjc/1007362.html www.bkjia.com true http://www.bkjia.com/PHPjc/1007362.html techarticle MongoDB installation, MongoDB 1. Prepare the required tools 1) Windows 7 64bit 2) MongoDB Browse 2. Installation 1) Unzip the Mongodb-win32-x86_64-3.0.3.zip to D:\program_files\MongoDB 2) D:\program_fil ...

  • 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.