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
- Login http://www.mongodb.org/Download software
- Double-click the MongoDB installation software, click Next to install the interface below
- Choosing a Custom installation path
- The following installation steps select default until the installation is complete
STEP3: Enable MongoDB
- View MongoDB executable file to open Directory: D:\MongoDB
- Create a folder where data is stored and create a/data/db directory under the D:\MongoDB directory
- Enter the D:\MongoDB\bin directory and enter the following file path: cmd
- Execute in open command-line window: Mongod--dbpath D:\MongoDB\data\db
- To verify that MongoDB started successfully, enter localhost:27017 in the browser
The above echo indicates that the database started successfully
- 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
- Create a new log directory under the D:\MongoDB\data path and open a new log file after opening Mongo.log
- Open cmd with administrator privileges, enter path D:\MongoDB\bin
- 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
- Open MongoDB Service
STEP5: Visualize MongoDB data
- Download Tool robomongo-windows-x86_64 (MONGO visualization tool)
- 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