Build a personal blog with NODE.JS+MONGODB (installation environment) (i)

Source: Internet
Author: User
Tags mongodb version

What is node. js?

node. JS is a JAVASCRIPT runtime environment based on the Chrome V8 engine. node. JS uses an event-driven, non-blocking I/O model to make it lightweight and efficient.

node. JS is developed by C + + and is actually a JS runtime environment that allows JavaScript to run on the server.

Installation Environmentinstalling node. js and NPM

First enter the NODEJS official website to choose their corresponding system download the latest version, I now use the WINDOW64 bit system, so select the Window64-bit version of the MSI file. Install after download is complete

After the installation is successful, check that the installation is successful, open the command line and enter the following code to view the version number:

Node-V

There is a hint that the version number indicates that the node and NPM environments are already installed

Installing the MongoDB Database

First go to the MongoDB official website to choose their corresponding system download the latest version, I now use the WINDOW64 bit system, so select the Window64-bit version of the MSI file. Install after download is complete

Next

Create a new folder in the D drive MongoDB, change the installation path to the MongoDB folder under the D disk.

Setting environment variables to run MongoDB after installation is complete

How do I set environment variables?

My Computer-right-click Properties-Advanced system Settings-advanced-environment variables

Add a semicolon behind the NPM environment variable in path; Then add the path that you just installed, D:\MongoDB\bin, and install it.

Test Run MongoDB

Enter the following code to view the MongoDB version number

Mongod-v

This gives you a clear view of DB version v3.2.10

The environment is now fully installed and ready for outgoing.

Build a personal blog with NODE.JS+MONGODB (installation environment) (i)

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.