About the use of MongoDB

Record the use process of MongoDB, from the introduction of database to the application of actual code reference material: https://www.runoob.com/mongodb/mongodb-connections.html 1 overview of mongodb 1. Introduction to mongodb MongoDB is an open source database system based on distributed file storage written in C + + language. I ...

Posted by polybiosis on Sun, 24 Oct 2021 03:57:13 +0200

Differences between mongodb estimateddocumentcount and countdocuments

preface When upgrading from MongoDB 2 to MongoDB4, the author found that the driver API has been greatly modified. Although the old API is still available, the driver does not know when these old APIs will be deleted, so the new API is used. One important pit is to calculate the count of document, which was originally the count() method of DBC ...

Posted by alfieshooter on Thu, 07 Oct 2021 18:00:31 +0200

How to deploy yapi yourself

preface Recently, we need to use yapi with team members, but some interfaces are not suitable for the yapi already deployed by the company. So we have the idea of deploying a set of yapi ourselves. There are twists and turns in the middle, and finally it is built. 1. Environment At first, I applied for a free cloud server on a cloud webs ...

Posted by BinaryStar on Fri, 24 Sep 2021 17:33:20 +0200

CentOS7 installation configuration mongodb3.2

1. Download Dependent Packages yum -y install wget 2. Create a file directory mkdir -p /app/install mkdir–p /app/data/mongodb mkdir–p /app/log/mongodb 3. Download mongodb cd /app/install wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.16.tgz tar zxvf mongodb-linux-x86_64-3.2.16 ...

Posted by Collin on Mon, 20 Jul 2020 18:21:42 +0200

mongoDB advanced application

Replica set introduction What is a replica set -MongoDB replication is the process of synchronizing data on multiple servers. -Replication provides redundant backup of data and stores copies of data on multiple servers, improving data availability, And can ensure the security of data. -Replication also allows you to recover data from hardwa ...

Posted by Shibbey on Wed, 06 May 2020 03:09:50 +0200

Install MongoDB replica set under Centos

Simulate the installation of a replica set of MongoDB under a Centos Prepare three profiles: mongod.conf bind_ip=0.0.0.0 port = 27017 dbpath = /usr/local/mongo/data/ logpath = /usr/local/mongo/log/mongod.log fork=true logappend=true replSet=myMongoSet mongod2.conf bind_ip=0.0.0.0 port = 27018 dbpath = /usr/local/mongo/data2/ logpath = /usr/loc ...

Posted by rusty1001 on Mon, 20 Apr 2020 19:11:48 +0200

linux builds php performance analysis tool

First on the renderings: Installation environment Centos,php7,MongoDB3,nginx php extension mongodb: http://pecl.php.net/package/mongodbtideways_xhprof: https://github.com/tideways/php-xhprof-extension Install MongoDB3 By default, MongoDB2 is installed in my environment yum. xhgui requires version 3 or above. Create a yum source for MongoDB3 vi ...

Posted by jalapena on Sat, 11 Apr 2020 17:27:35 +0200

Mongodb Installation Required Read System Optimization

Mongodb released two available service versions: Community and Enterprise The Monodb we use is a community versionOfficial Recommendation:For the best installation experience, MongoDB provides packages for popular Linux distributions.These packages are the preferred way to run MongoDB. 1. linux platform support Install on Red Hat Supports the ...

Posted by comtek on Thu, 09 Apr 2020 23:24:20 +0200

mongoDB mongoDB cluster

mongoDB cluster introduce Solve data fragmentation and prevent data lossProduction environment needs to be deployed by scraping shards + replica sets Component route: provide entry, do not store data configserver: stores metadata information. It is recommended to use replica set shardserver: data storage service, store real data, maybe use re ...

Posted by phpjaco on Wed, 08 Apr 2020 10:17:52 +0200

A comprehensive table of Vue module (2) creating tables

A comprehensive table of Vue module (2) creating tables Technology stack Vue family bucket: Front end framework Vue.js State management Vuex Dynamic route matching Vue router http services axios Module packaging web pack UI framework element Data server Server side node.js node based web framework express mongodb: d ...

Posted by Dathremar on Sun, 05 Apr 2020 01:04:56 +0200