"Step by Step Spring+maven+mongodb" one: Environment configuration

Source: Internet
Author: User
Tags mongodb client parent directory

"Step by Step Spring+maven+mongodb" one: Environment configuration


First, the development environment

Eclipse (Java EE Edition)


Second, the environment configuration 1.JDK configuration

1.1.1 Download JDK

: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html, find the corresponding version, download the installation.

1.1.2 Configuring Environment variables

Open environment variable, system variable, new, variable name java_home, variable value: The above installation path (until the bin parent directory).

Find path, edit, variable value add%java_home%/bin;

2.maven Configuration

2.1 Download Maven

: http://maven.apache.org/download.cgi find the corresponding version, download unzip

2.2 Configuring Environment variables

Open environment variable, system variable, new, variable name m2_home. Variable Value: The above decompression path (until the bin parent directory)

Find path, edit, variable value add%m2_home%/bin;

3.MONGODB Installation 3.1 Monogo service installation

3.1.1. http://www.mongodb.org/downloads

3.1.2. Installation

3.1.3. Enter the bin to run the Mongod, the following problems occur


Solve:

(1) Create: C:\data\db folder,

(2) Create a C:\data\log\mongod.log file.

(3) Create: C:\mongodb\mongod.cfg file, enter the following text in the file:

Logpath= C:\data\log\mongod.log

Dbpath=c:\data\db

3.1.4. Running Mongod Normal

In the browser input localhost:27017, if the IT lookslike is displayed it is trying to access MongoDB over HTTP on the native driver port. OK, continue to the next step.

Reopen a CMD window (before the window closes), run MONGO, normal
3.2 MongoDB Client Installation

Self-installing, visualizing data




"Step by Step Spring+maven+mongodb" one: Environment configuration

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.