Install MongoDB on Windows
First, go to the official MongoDB website. Next, we can observe that the folder contains the following files:
As you can see, MongoDB is very simple, with only 10 files. Next, create a directory for storing database files, which is set to c: \ mymongodb. Then you can start
to start successfully:MongoDB starting:pid=232 port=27017 dbpath=e:/mongodb/data 64-bit host=xxx-pcTargetminos:windows 7/windows Server R2DB version v2.6.3, pdfile version 4.5Git version:0eb017e9b2828155a67c5612183337b89e12e291Waiting for connections on port 27017Modify Port:You can modify the database port by adding the parameter--port:E:/mongodb/bin>mongod.exe
entry if input MOngo cannot be turned onMongod--dbpath D:\MongoDB\data--logpath D:\MongoDB\logs\MongoDB.log--install--servicename MongoDBRe-enter MOngo to open the2. MongoDB installation in Linuxwget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.2.6.tgz(Address: http://download.csdn.net/detail/u011575570/9055
Mongod.exe process will be repeatedly established, destroyed, established, destroyed. The service status also becomes started, stopped, started, stopped, and the client cannot connect to the database at all.
Here I use the Mongodbdata directory under C disk as the data file storage directory, so set up a directory:
Well, here's your job done, and you can install the service here:
D:\mongodb
is as follows:10001AccessBrowser AccessIn the browser input: http://localhost:27017 can see the following prompt: You is trying to access MongoDB on the native driver port. For HTTP diagnostic access, add the port number so that the MongoDB database service has been fully started.Client Connection DatabaseOpen another CMD window, the original window does not close, if the window closes then the service als
service. run the following command:
The code is as follows:
Memcached.exe-d install
4. run "start"> "administrative tools"> "Windows services"> "view tools", and find the memcached service (no proof of successful installation)
5. start Memcached:
The code is as follows:
Memcached.exe-m 1024-d start
-D: Start the Daemon. the default port 11211 cannot be specified.-M indicates the specified memory size.
6. configure
default port 11211 (This step is not required if both the server and client are native)
7, the test can be normal communication, here with the help of Telnet:
127.0. 0.1 11211
If you enter a blank doc screen, the estimate is OK. The first line of command input is invisible, so I usually first hit the carriage return, return an error, it is OK, this is to indicate that you entered an unrecognized command;
Then look at the status, type stats and enter:
The official download site for MongoDB is http://www.mongodb.org/downloads. you can download the latest
Program . On the download page, you can see that OS X, Linux, windows, and Solaris are fully supported, and each version has its own 32-bit and 64-bit versions. The current stable version is 1.8.1.
1. Windows Installation
(1) download
MANGODB Installation
1. Download the MongoDB installation files, I install the Windows 64-bit, download the address as follows:
Https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.6.6-signed.msi
2. Create a new MongoDB folder on e-disk (casually put, such as E:\mongod
to the Windows Local Service. Continue back to CMD, execute: Since we have entered the D:/soft/mongodb/bin directory before, we just need to execute the following command:
mongod.exe--logpath D:/soft/mongodb/logs/mongodb.log-- Logappend--dbpath d:/soft/mongodb/data--directoryperdb--servicename
Tags: style blog http io ar color OS using SPMANGODB Installation1. Download the MongoDB installation file that I installed for Windows 64-bit, as follows:Https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.6.6-signed.msi2. Create a new MongoDB folder on e-disk (casually put, such as E:\
; "administrative tools"> "Windows services"> "view tools", and find the memcached service (no proof of successful installation)
5. start Memcached:
memcached.exe -m 1024 -d start
-D: Start the Daemon. the default port 11211 cannot be specified.-M indicates the specified memory size.
6. configure Windows Firewall and add inbound rules for Memcached's default port 11211 (this step is not required if both the
Recently found that a lot of friends in the search for free VPN account, through the free VPN proxy IP, using VPN technology to turn the wall to find what they want, pond, as a retreat and networking, today's Fast Cloud VPS Small series, to share, Use the relevant free VPN agent software and fast Cloud VPS How to configure their own
Tags: too comm Share editor Community Mongod Body WWW Service Because the new Windows 10 computer, you need to reinstall all the software on the new computer, including MongoDB download file : Start with the latest version of MongoDB installer on the official website of MongoDB, https://www.mongodb.com/, scroll Web pa
dataDouble-click to open the Mongo.exe client program in the installation directory bin directory and connect to the test database by default after opening.CRUD Operations TestingMore and more full crud operationsThe long-winded focus finally came ...Create a Windows service for MongoDB
Configuration log file path
Configure the database path
Ins
, the default is stop state, we need to manually open the service, with the command, net start MongoDB, open the service.After the service is turned on, the data folder that was created automatically generates several files, which should be related to the file.
Client Connection Validation
After the service is turned on, there are two ways to verify that the success is actually turned on
Label:Original link http://www.oschina.net/question/12_59707 monjadb is a mongodb GUI client tool that provides intuitive MONGODB data management capabilities that support Windows/mac/linux.MONJADB is an Eclipse plugin, you must first install eclipse. Main Features:
Use
WYSIWYG Edit Json/table/tree Data
Tags: style color using OS file data ar
MongoDB Installation and startup Zhou Jianxu 2014-08-10Configure environment variables after decompressionDownload the Windows 32-bit or 64-bit version and unzip, the program files are in the bin directory, the other two directories are C + + calls the header file and the library file. The Bin directory contains the following programs: 1. Mongo.exe, command-line
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.