Recently MongoDB is frequently shot in the hack news. Many people are more claiming to hate Mongodb,david Mytton on his blog revealing many of the existing problems in MongoDB. But the hated one has the same many preferences, as a comeback: Russell
Install MongoDB >
Install MongoDB Community Edition >
Install MongoDB Community Edition on Linux >
Install MongoDB Community Edition on Ubuntu
Install MongoDB Community Edition on UbuntuOn the This page
Overview
First of all to ensure that the correct installation of mongodb, Installation Reference: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian-or-ubuntu-linux
Then download the mongodb driver of nodejs
Npm install mongodb
Compile a test
MongoDB cluster creation
MongoDB replication cluster type:
· Master-slave mode (master/slave)
· Replica set mode (replica set)
The copy and mode have at least three nodes (one master node and two slave nodes). The slave node is responsible for
The following installation methods are not recommended. See my other blogs, Debian and Ubuntu installation MongoDB
1. Download installation package
32-digit: wget http://fastdl.mongodb.org/linux/mongodb-linux-i686-3.2.7.tgz 64:
wget
First of all, to ensure proper installation of MongoDB, installation reference: Http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian-or-ubuntu-linuxYou can also refer to my other blog post.Http://www.cnblogs.com/sexintercourse/p/5774310.
First of all to ensure that the correct installation of mongodb, Installation Reference: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian-or-Ubuntu-linux
Then download the mongodb driver of nodejs
Npm install mongodb
Compile a test
2 Practice Section2.1 Environment Configuration2.1.1 Configuration system comes with apt sourceVi/etc/apt/sources.listThe configuration is as follows:#deb Cdrom:[debian gnu/linux 7.11.0 _wheezy_-official AMD64 DVD Binary-1 20160605-17:36]/Wheezy
Raspberry Pi3 Official support is 32bit system, use MongoDB when there is 2G database size limit, 32bit of data on the system is basically can not be used, so to install 64bit of openSUSE.After installing SuSE, found no MongoDB program, so installed
How to monitor MongoDB replica set using PrometheusThere are many ways to monitor MongoDB replica set:
Using Zabbix template to view MongoDB data (Zabbix+grafana)
MongoDB official own but now charge for
Prometheus collects data
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.