Mongodb installation in win7 is absolutely correct. mongodb installation in win7

Source: Internet
Author: User
Tags install mongodb mongodb commands

Mongodb installation in win7 is absolutely correct. mongodb installation in win7
Install MongoDB in Windows 7

1. Download
Address: http://www.mongodb.org/downloads (32-bit or 64-bit ).
I downloaded: mongodb-win32-x86_64-2.4.5.zip

2. Decompress
Put mongodb-win32-x86_64-2.4.5.zip to a certain position and decompress it. I put the D: \ dev directory.
The decompressed path is D: \ dev \ mongodb-win32-x86_64-2.4.5

3. Installation preparation
The default data directory of MongoDB is C: \ data \ db. If a directory is created, the -- dbpath parameter is added after the cmdd.exe command.
Create a data directory. I created D: \ dev \ mongodb-win32-x86_64-2.4.5 \ data \ db
Create a log directory and its files. I created D: \ dev \ mongodb-win32-x86_64-2.4.5 \ log and D: \ dev \ mongodb-win32-x86_64-2.4.5 \ log \ log.txt.

4. Start MongoDB
Open the window (cmd.exe), enter D: \ dev \ mongodb-win32-x86_64-2.4.5 \ bin, execute mongod.exe command, see.
Mongod.exe -- logpath = D: \ dev \ mongodb-win32-x86_64-2.4.5 \ log \ log.txt -- dbpath = D: \ dev \ mongodb-win32-x86_64-2.4.5 \ data \ db

The -- logpath parameter is used to set the log file path.
-- The dbpath parameter is used to set the path for storing database files.
You can use mongod.exe -- help to view all zookeeper commands.

5. Install as a service
Open the windows cmd window with administrator privileges to enter the D: \ dev \ mongodb-win32-x86_64-2.4.5 \ bin directory.
Mongod.exe -- install -- logpath = D: \ dev \ mongodb-win32-x86_64-2.4.5 \ log \ log.txt -- dbpath = D: \ dev \ mongodb-win32-x86_64-2.4.5 \ data \ db
-- The install parameter is used to set the installation as a server.

After being set as a service, you can (Windows cmd window opened with Administrator permission) Window to start or stop MongoDB as a service.
Net start mongodb Service
Net stop mongodb start mongodb Service

6. Go to the shell environment interface
Enter sheelMongoDB, enter D: \ dev \ mongodb-win32-x86_64-2.4.5 \ bindirectory In the cmd window, enter cmd.exe, you can enter the shell environment interface.


7. In the future, run the net start MongoDB and net stop MongoDB commands in cmd to start and stop MongoDB. You can also see it in the local service.

Manage the service through the interface.



Solutions to problems when MongoDB is installed in Windows 7 7

Follow the prompts to add the -- journal option.
 
After the win7 system is reinstalled, click cad2008 and click the icon. What is the problem? How to solve the problem (the software installation is absolutely correct, and the version has been tried a lot ,)

Does your system support this version of CAD? If not, consider installing it on a virtual machine ~
 

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.