Label:1. Install the downloaded MongoDB on the E-drive E:\MongoDB2. Go to the Bin directory to execute mongod--dbpath "E:\MongoDB\data" Enter, close the current CMD window3. Create a new Logs folder in the MongoDB directory to store the log files4. Create a new mongod.cfg configuration file in the MongoDB directoryThe
Cause:
After installing the MongoDB, want to open the page end controller to look, found http://127.0.0.1:28017/_commands this link can not open, the hint rest does not open,
You need to add a configuration at startup--restSolve:
SC Delete MongoDB #先删除掉之前的
Attention:
Binpath= Here's a space where the commands need to be enclosed in quotes.
SC create MongoDB
, then first delete this, SC delete MongoDB5. Then re-enter the second section of the folder, enter the command mongod--logpath d:\data\log\MongoDB.log--logappend--dbpath d:\data\db--directoryperdb-- ServiceName MongoDB--install6. Continue to enter directive net start MongoDB (MongoDB This is the fifth step of the specified s
Run the command window under Mongodb/binYou need to configure the log and DB path as follows:Mongod--logpath d:\mongo\logs\logfilename.log--logappend--dbpath d:\mongo\data--installThe MONGO DB service can be seen in the local service after configuration.DOS execution: net start "MongoDB" started the service.To delete a
entire path in double quotes. For example:C:\mongodb\bin\mongod.exe--dbpath "D:\test\mongo DB data"If you want to develop applications using. NET, see the documentation of C # and MongoDB for more information.4Begin using MongoDB.To begin using MongoDB, see Getting Started with MongoDB. Also consider the Production no
service command: mongod-config c: \ MongoDB \ etc \ mongo. conf-remove, refresh the service, and you will find that the service has been deleted.
In addition, if you do not want to enter the installation directory, you can configure the Mongo environment variables so that you do not need to start the installation dire
\ MongoDB \ data folder and a C: the \ Program Files \ MongoDB \ data \ log folder is used to store data and log Files. Create a text file named MondoDB. log in the log folder to store mongodb log information. After the creation is complete, right-click the Start menu -- all programs -- attachments -- command prompt -- run as administrator, and enter the followi
Mongodb database adding System Service tutorial, mongodb System Service 1. Create the mongod file in the/etc/init. d directory and grant the correct permissions:
root@ubuntu:/etc/init.d# touch mongodroot@ubuntu:/etc/init.d# chmod 755 mongod
2. Edit the mongod File
#!/bin/sh### BEGIN INIT INFO# Provides: mongod# Req
download the zip file and decompress it to the specified directory. You can click msi to run the file without any special attention. Both are easy to install. You need to download and install the appropriate version based on your operating system.
The difference between 32-bit and 64-bit is that a 32-bit mongodb can only store up to 2 GB of data, and there is no limit on 64-bit data.
The operating system used by the author is
zip file and decompress it to the specified directory. You can click msi to run the file without any special attention. Both are easy to install. You need to download and install the appropriate version based on your operating system.
The difference between 32-bit and 64-bit is that a 32-bit mongodb can only store up to 2 GB of data, and there is no limit on 64-bit data.
The operating system used by the author is
Tags: style http color ar using strong SP div on, you can refer to my workaround when you use the net START command when you add a service with the following code.D:\mongodb>mongod- -dbpath D:\mongodb\data --logpath d:\ Mongodb\log\mongodb. Log --logappend --serviceName
:\mongodb\mongod.cfg"
The illustration shows the MongoDB service creation success.
4, start the service
net start MongoDB
Appears as shown in the figure, indicating that the MongoDB servic
Tags: index XA requires action set x86 read and Write permissions God BPAinstallation :1 Download Linux installation package 2 on the official website in Linux decompression 3 will unzip the directory MV to the specified installation directoryMV mongodb-linux-x86_64-rhel70-3.6. 5//usr/local/mongodb4 CD to the bin directory, execute the following command to add the environment variable:Export path= $PATH:/usr/local/
database file to E:\Work _app\mongodb\data\db directory Note: 1, note is Mongod.exe 2, this time the interface will stop at 2015-03-26t15:19:17.135+0800i network[initandlisten]waitingforconnectionsonport27017 (the database is now started)
4First knowledge of MongoDB:New Open [ Note is new ] after a cmd window, then run the Mongo.exe program (note that there is no d), at this time the previous window is displayed: 2015-03-26t15:31:10.14
MongoDB concept understanding, MongoDB shell connection to Mongodb service, mongodbshellMongoDB concept understanding
MongoDB shell connection to Mongodb Service
Standard URI connectio
MongoDB does not support Windows XP at the beginning of version 2.2 (I think the use of XP should also be a part of the feelings of people, I just a craftsman only), Windows Server8 r2,64 bit, 32-bit, only 32-bit support database is less than 2GB.① detection is how many bits of the system (method is not limited to this)
1
wmic os get osarchit
[MongoDB] Build a mongodb sharding cluster on the windows platform (2). mongodb Cluster
In the previous blog, we talked about the main principles of Mongodb sharding clusters. In this blog, we will mainly describe how to build a sharded cluster. There are two steps to config
a port 27017, which represents the mongodb listening port. We will use this port during connection, just like mysql's port 3306. Similarly, we can -- port to modify this port.
There is also a 28017 port, which is a web Service port that mongodb started for us at startup. We can use http: // localhost: 28017/to view some mo
parameters
New file mongodb.conf under D:\work\MongoDB, write in file
DBPath = D:\work\MongoDB\dataLogPath = D:\work\MongoDB\log\mongodb.log
Using commands
Mongod-f D:\work\MongoDB\mongodb.conf
Appendix 2: Start the MongoDB as a se
Install mongoDB in windows and mongodb in windows1. Original Intention
This is so simple that I have been thinking about whether to write an article for a long time. However, for beginners, anything they have never touched may become a stumbling block, therefore, this blog aims to pave the way for record, rather than display level.2. Download
Search for the key
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.