If you are interested in MongoDb document databases, you need to install them.
Download to the official Windows version of http://www.mongodb.org/display/DOCS/Downloads is currently the latest stable version is 1.2.4. Unzip to f:/sofr/mongodb-win32-i386-1.2.4.
Start mongod
Copy codeThe Code is as follows: F: \ soft \ mongodb
Label:monmatchledcheck cause Fault alsconfig data type Data type MongoDB 3.x data capacity GB Failure type Server power loss causes WIREDTIGER.WT file corruption Start error detected data files in E:\DTLFolder\MongoDB\ Data created by the ' Wiredtiger ' storage engine, so setting the active storage engine to ' Wiredtiger '. 2018-05-08t16:10:09.755+0800 I STO
content);//query out the first data and replace//Modifying Data//Document query = new document (); //query.put ("Age", 28); //Document update = new document (); //Document D = new document (); //d.put ("Birthday", New Date ()); //d.put ("name", "Zhangsan"); //update.put ("$set", D); //mongocollection.updateone (query, update);//Modify the first piece of data to be queried//mongocollection.updatemany (query condition, modify content);//Modify all the data that is queried//Delete Data//Document q
This section describes
WindowsAnd
LinuxDownload link: http://www.mongodb.org/display/DOCS/Downloads plugin -----------------------------------------------------------------------------------
WindowsDownload the version 1.4.3 (Windows 32 bit) with the following command: 1. mongod command to create a MongoDB database link with the data storage path E: \ data \ MongoDB
E:
CD
Label:At the beginning of the article, let's review how to open the MongoDB database with the cmd Command window, with the following command: Open the MongoDB database CD D:\Program files\mongodb\bin
mongod "D:\Program files\mongodb\data" See the above window information, we can see the
MongoDB Master-Slave synchronization settingsabout MongoDB installation and start-up parameter description can refer to my previous reprint of the "Ubuntu installation MongoDB" and "mongodb Start command Mongod parameters descript
How to start and cut MongoDB system logs
When the mongos routing service is enabled during mongodb sharding, a log storage location is specified:1 mongos -- configdb 127.0.0.1: 27019 -- logpath/var/log/mongodb/mongos. log -- pidfilepath/var/run/mongodb/mongos. pid -- logappe
Turn from:http://blog.csdn.net/lingchen214/article/details/245376291 Customize the installation to the C:\mongodb directory.2 Create DATA\DB and logs two folders manually under the C:\mongodb directory3 start cmd as an administrator and go to C:\mongodb\bin as the current directory.c:\
Tags: cat article can't share mon cti waiting Ges TipsWhen you install MongoDB, use MongoDB as the system service to start the net start MongoDB, error occurs system errors 2 The system cannot find the file specified. The reason for this is because the executable file addres
Download the source code:(Put in the /usr/local/src directory)
To the official website http://www.mongodb.org/downloads Download the source code
HTTPS://FASTDL.MONGODB.ORG/LINUX/MONGODB-LINUX-X86_64-2.2.7.TGZ (64-bit)
Https://fastdl.mongodb.org/linux/
1. Create a new Data folder under D:\MongoDB2. Create a new DB and log folder under D:\MongoDB\data3. Create the Mongo.log file under D:\MongoDB\log4, create a new mongod.cfg file under D:\MongoDB, add the following in the fileLogpath=D:\MongoDB\data\log\mongo.logdbpath=d:\mongodb
Sometimes when we use SSH to install MongoDB, if this starts./mongod--dbpath=/export/nerdserver/mongodb-linux-x86_64-2.4.6/data/db--logpath=/export/nerdserver/ Mongodb-linux-x86_64-2.4.6/data/logs/mongdb.log--logappendSo if we turn off the SSH client,
Tags: command strong resolve specified Mongod waiting set service writeMongoDB cannot start a workaroundWhen MongoDB suddenly fails to start, the first reaction is to remove Mongod.lock. This file is in the database directory of MongoDB, the default is/data/db. This is the most common problem, due to the fact that
http://dmyz.org/archives/423When MongoDB suddenly fails to start, the first reaction is to remove Mongod.lock. This file is in the database directory of MongoDB, the default is/data/db. This is the most common problem, due to the fact that MongoDB does not end properly (such as being killed by kill-9 or other unexpecte
this directory or use --dbpath a parameter entry to specify a directory that already exists.DBPath (/data/db) This directory is the place to store MongoDB data filesSince it doesn't exist /data/db , let's create this directory.First return to the disk root in the terminal input cd / commandThen enter the commandMkdir-p/data/db Create/data/dbRe-enter the sudo mongod command to start the
Mongodb 1 quick start deployment
Quick Start deployment of Mongodb
1. Download mongdb and unzip vue
I downloaded the windows zip package here.
2. decompress the package
Rename mongodb
3. Create data, log, and repair files in the
Mongodb installation and startup 1. First download the corresponding Mongodb version based on the corresponding operating system. This article describes the operations in the 64bitwindows7 environment. 2. decompress the package and place it in the specified position, such as E: dev. In the folder shown in, you can also customize other paths for storing data files. Create a logs folder in this path,
file.D. bat batch Implementation start MongoDB scriptMongoDB Install bin path D:\Program files\mongodb\bin,mongodb in Data folder D:\Program Files\mongodb\data We should be like this in the cmd command window, start the
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.