[MongoDB] Installation of MongoDB, mongodb

Source: Internet
Author: User
Tags mongodb server

[MongoDB] Installation of MongoDB, mongodb

First what I wanna make clear is that in the official website the detailed process of installation has been described. you cocould call it throught the link

Http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

In the front of the page, one question shocould be taken into consideration. as the following describes,


And just now I have installed the hotfix to resolve an issue with memory mapped files on windows.

According to the tip in the mongodb manual, the command "wmic OS get osarchitecture" cocould find which version of running s you are running. So supprising.

Because I download the zip version of software, in the software package, it contains the following content.



And then in the d: program (I always install the devlopment software in the d: program). it depends on you.


Now let's start the server.



From the last sentence, we could know infomation that the server run successfully, and default port is 27017.

Use mongo command we cocould find the version installed, and then test success.




Exception what may happened.


See http://blog.mongodb.org/post/137788967/32-bit-limitations





[MongoDB] how to stop a MongoDB Server

If the server runs on the terminal as a foreground process, press Ctrl-C. Otherwise, use the kill command to send a signal. If the PID of mongod is 10014, you can use kill-2 10014 (SIGINT) or kill 10014 (SIGTERM ).
When mongod receives the SIGINT or SIGTERM, it exits. That is to say, it will wait until the current operation or file pre-distribution is completed (it takes some time), close all open connections, refresh the cached data to the disk, and finally stop. Do not send SIGKILL (kill-9) to a running MongoDB instance ). This will cause the database to be shut down directly, and the previous steps will be ignored, which will damage the data file.
 
What should I do if an error occurs after MongoDB is installed?

Install? What do you mean by installing MongoDB?
Generally, MongoDB in windows only needs to Extract files from the official website. What you need to do is to start the MongoDB service. The mongodbservice refers to the startup of mongod.exe in the bindirectory. Then, you can access this service using mongodb's client shell, that is, the cmd.exe in the bindirectory.
To sum up, I think the possible reasons are:
1. This is definitely the case. If you haven't started the MongoDB service, use bin/mongod to start it.
2. Has the default port changed? By default, MongoDB uses 27017. If you change this startup configuration, such as using bin/mongod-por 27000, then you have to use bin/mongo-port 27000 to connect.
3. If mongod reports an error at startup, you must send the log to handle it.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.