MongoDB, one of the hottest NoSQL, has now been widely stored in data. This article describes how to perform a standalone installation under Windows.Environment :Windows Server 2016 (other versions also apply)MongoDB 3.6.5Download :MongoDB Official
As the company also has several MongoDB database, need to open a certain portion of the permission for external personnel to use, so here to record, only for the needs of friends to use.1. MongoDB Common
An import PymongoFrom Pymongo import mongoclientTwo connection server port number 27017Connect to MongoDBConnect MongoDB We need to use the Pymongo library inside the mongoclient, generally incoming MongoDB IP and port, the first parameter is the
I. Operation of MONGODB database1. Create a database
syntax:use database name
Description: Create the database if the database does not exist, or switch to the specified database
Note: If the database you just created is not in the
An overviewA replica set is a set of Mongod instances that maintain the same set of data. The replica set contains multiple data hosting nodes and an optional quorum node. In a data hosting node, only one member is considered the primary node, while
First, collection (table of corresponding database) 1, view all the collections in the current libraryShow collections2. Create new collection explicitlyDb.createcollection ("user")Implicitly-CreatedDb. user. Insert ({name: "Zhangsan"})3. Deleting a
Win10 above the installation of MongoDB, be careful not to check the install MongoDB Compass, or will exit Error!!!!
The installation of MongoDBI am a MongoDB folder built on the e disk, used to install MongoDB.and create it in the
The 1th chapter of the course IntroductionBriefly review the framework of the front-end in recent years, to understand the characteristics of the framework at different times. Secondly, the background and core idea of Vue framework and the
First, downloadLinux:centos 7.3 64-bitmongodb:3.6.4Installation directory:/usr/localcd/usr/localwget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64- Rhel62-3.6.4.tgzSecond, decompressionUnzip the installation package and rename it (easy to
Two ways to run MongoDBCheck if there are Mongodb:which MongodCreate DATABASE Storage directory: Mkdir-p/data/dbCheck the disk directory for space (typically larger than 4G): DF-LHStart: A direct start: Mongod--dbpath=/data/db--port=27017B daemon
Parameter explanation:DBPath: Data Storage DirectoryLogPath: Log Storage pathPidfilepath: Process files to help close servicesLogappend: Logging in Append (boolean value)Replset: The name of the replica set, with the same name for each replica
1 MongoDB Several startup methods start the MongoDB service there are two ways, the foreground start or daemon mode start, the former will need to keep the current session cannot be closed, the latter can be used as the system fork Process execution,
1. Download the installation packagewget http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.8.2.tgzUnzip the package after download is completeTar zxf mongodb-linux-i686-1.8.2.tgz2. Install ready to move MongoDB to the/usr/local/server/mongdb
First, what is MongoDB?MongoDB is a high-performance, open-source, modeless document-based database that is a popular one in the current NoSQL database. It can be used in many scenarios to replace the traditional relational database or key/value
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.