1. Download Dependent Packages
yum -y install wget
2. Create a file directory
mkdir -p /app/install
3. Download mongodb
tar zxvf mongodb-linux-x86_64-3.2.16 ...
Posted by Collin on Mon, 20 Jul 2020 18:21:42 +0200
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
Simulate the installation of a replica set of MongoDB under a Centos
Prepare three profiles:
port = 27017
dbpath = /usr/local/mongo/data/
logpath = /usr/local/mongo/log/mongod.log
port = 27018
dbpath = /usr/local/mongo/data2/
logpath = /usr/loc ...
Posted by rusty1001 on Mon, 20 Apr 2020 19:11:48 +0200
First on the renderings:
mongodb: http://pecl.php.net/package/mongodbtideways_xhprof: https://github.com/tideways/php-xhprof-extension
By default, MongoDB2 is installed in my environment yum. xhgui requires version 3 or above.
Create a yum source for MongoDB3
Posted by jalapena on Sat, 11 Apr 2020 17:27:35 +0200
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
Solve data fragmentation and prevent data lossProduction environment needs to be deployed by scraping shards + replica sets
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
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
An array is embedded in the Mongo aggregate nested array document, which is to aggregate the embedded array.
"_id" : ObjectId("5aa63f7034cdbd6928f831ff"),
"domain" : "metacafe.com",
"cdn" : "LLNW",
"geo_bytes" : [
"bytes" : 223,
"geo" : ...
Posted by saidbakr on Fri, 03 Apr 2020 03:06:18 +0200
This paper introduces the usage of mongodb database in node.js project. The related directory structure is the directory in the project. The code is not uploaded first, only the method is introduced.
Using mongodb for database
The installation method of mongodb server is to execute apt get install mongodb in ubuntu, a ...
Posted by Walker33 on Thu, 02 Apr 2020 11:33:27 +0200
Refer to official documents: http://www.mongoing.com/docs/tutorial/remove-shards-from-cluster.html'>http://www.mongoing.com/docs/tutorial/remove-shards-from-cluster.html
1. Check whether balancer is on
2. Find fragment id to delete
--- Sharding Status ---
Posted by Idri on Thu, 02 Apr 2020 01:50:13 +0200