First, installation and configuration1. Download and install#1, install path is D:\MongoDB, add D:\MongoDB\bin directory to environment variable#2. Create new directory and fileD:\mongodb\data\dbd:\mongodb\log\mongod.log#3. New configuration file
One, MongoDB master, deputy, quorum node cluster installation
MongoDB's cluster approach is divided into three types of replica set/sharding/master-slaver, here only the simplest way to build a cluster (production environment), if there are
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
1. Upload the downloaded installation package to the LNIUX server, or Curl-o https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.6.tgz2.TAR-ZXVF mongodb-linux-x86_64-3.0.6. tgz3.MV mongodb-linux-x86_64-3.0.6//usr/local/MongoDB # Copy the
At the time of the test, the db.dropallusers () operation was performed under the Amin Library, and then all the administrator users did not have any action to prompt error:not authorized on admin to execute command ...Here's how to handle this
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
One-click Installation via apt-get install MONGO under Linux MONGO The configuration file for MONGO after installation is located in /etc/mongodb.conf. It 's inside . MONGO configuration, the file content is as follows: Important mainly have the
MongoDB Auto-sharding solves the problem of mass storage and dynamic capacity expansion, but there are some distances from the high reliability and high availability required for the actual production environment, so there is a "Replica sets +
1. Download the installation package wget http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.8.2.tgz unzip the tarball after the download is complete ZXF Mongodb-linux-i686-1.8.2.tgz 2. Install prepare to move MongoDB to/usr/local/server/mongdb
About the default settings for the MOGODB database:1. The port default setting is: 270172. The database file location defaults to: c:/data/db, it is recommended to modify to a different disk location, you must create the Data/db folder at the root
Installing a 32-bit mongodb on a 32-bit centos, which is more troublesome than installing a 64-bit MongoDB on a 64-bit CentOS, now logs the installation process as follows:My 32-bit Centos6.4 is newly built. The steps for installing MongoDB are as
1. Introduction of ShardsSharding (sharding) is the process of splitting data and spreading it across different machines. MongoDB supports automatic sharding, which allows the database schema to be invisible to the application. For applications, it
(transferred from http://blog.csdn.net/yuwenruli/article/details/8529192)1. Download the installation package wget http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.8.2.tgz unzip the tarball after the download is complete ZXF Mongodb-linux-i686-1.
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
I. MONGODB installation and start-upWidndows and Linux are basically the same1. Download the database,Linux:mongodb-linux-x86_64-ubuntu1404-3.0.3.tgz2. Unzip the file and place it in the appropriate locationtar-vxf mongodb-linux-x86_64-ubuntu1404-3
mongodb{First, start {# Do not start authentication./mongod--port 27017--fork--logpath=/opt/mongodb/mongodb.log--logappend--dbpath=/opt/mongodb/data/# Start Authentication./mongod--port
Next blog post:Http://www.cnblogs.com/xiaoit/p/4479066.html1: First create 3 virtual machines as configuration environmentip1:192.168.91.128ip2:192.168.91.129ip3:192.168.91.1302: Download MongoDB 2.6
Reference: http://wengzhijuan12.blog.163.com/blog/static/3622414520137104257376/http://wengzhijuan12.blog.163.com/blog/static/3622414520137104257376/http://blog.csdn.net/shmnh/article/details/41976451Replication of the upgraded version of
One, Windows environment
1, download Mogodb
MongoDB's official website is: http://www.mongodb.org/
MongoDB Latest version Download in the official website of the download menu: http://www.mongodb.org/downloadsThe official website sometimes does not
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.