Python Crawler Learning ==> Chapter II: MONGODB Environment configuration

Source: Internet
Author: User
Tags mongodb

Purpose of Study:

The installation of MongoDB

Formal steps

(This MongoDB self-boot service cannot be installed on VMWare virtual machines, if you can do so, please advise)

Step1:mongodb's introduction

MongoDB is a database based on distributed file storage. Written by the C + + language. Designed to provide scalable, high-performance data storage solutions for Web applications.

MongoDB is a product between a relational database and a non-relational database, and is the most versatile and most like relational database in a non-relational database. The data structure he supports is very loose and is a JSON-like Bson format, so you can store more complex data types. MONGO's biggest feature is that the query language he supports is very powerful, and its syntax is a bit like an object-oriented query language that almost implements most of the functionality of a relational database single-table query, and also supports indexing of data.

(Refer to the Baidu Encyclopedia: Https://baike.baidu.com/item/mongodb/60411?fr=aladdin)

STEP2:MONGODB Installation
      1. Login http://www.mongodb.org/Download software
      2. Double-click the MongoDB installation software, click Next to install the interface below
      3. Choosing a Custom installation path

      4. The following installation steps select default until the installation is complete

STEP3: Enable MongoDB
    1. View MongoDB executable file to open Directory: D:\MongoDB
    2. Create a folder where data is stored and create a/data/db directory under the D:\MongoDB directory
    3. Enter the D:\MongoDB\bin directory and enter the following file path: cmd


    4. Execute in open command-line window: Mongod--dbpath D:\MongoDB\data\db

    5. To verify that MongoDB started successfully, enter localhost:27017 in the browser
      The above echo indicates that the database started successfully

    6. Open the database command line, go to the installation D:\MongoDB\bin directory, enter CMD in the path bar, open the appropriate directory on the Windows command line, start the database command line: MONGO

STEP4: Configuring MongoDB System Services
    1. Create a new log directory under the D:\MongoDB\data path and open a new log file after opening Mongo.log
    2. Open cmd with administrator privileges, enter path D:\MongoDB\bin
    3. Execute command: Mongod--bind_ip 0.0.0.0--logpath D:\MongoDB\data\log\mongo.log--logappend--dbpath D:\MongoDB\data\db--port 27017--servicename "MongoDB"--servicedisplayname "MongoDB" –install
    4. Open MongoDB Service

STEP5: Visualize MongoDB data
    1. Download Tool robomongo-windows-x86_64 (MONGO visualization tool)
    2. Open tool after default installation, host name and port number from data in previous step configuration

Learning Summary:

Crawler learning, the basic stage without virtual machine to learn, because the computer network knowledge can not support their own learning environment to build.

Python Crawler Learning ==> Chapter II: MONGODB Environment configuration

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.