node. JS (i) Introduction and installation

Source: Internet
Author: User
Tags install node

Start the Learning path for node. js. I am a node rookie, summed up their learning process, and we study together, there is nothing wrong place, also please correct me!

1. Why use node. js?

The primary goal of node. JS is to provide a simple development tool for creating high-performance servers and a variety of applications that can run on that server. node. JS has the advantage of implementing a high-performance server with non-blocking I/O and event loop mechanisms. Strictly speaking, node. JS is a development tool for developing a variety of Web servers. In the node. JS server, you are running a high-performance V8 JavaScript scripting language, which is a scripting language that can run on the server side. The JavaScript scripting language is only single threaded, and so does the V8 JavaScript scripting language, so there's no need to worry that he will cause deadlocks. However, unlike the Client scripting language, node. JS provides a non-blocking I/O-type mechanism for the V8 JavaScript scripting language.

node. JS is used for development: When an application needs to handle a large amount of concurrent input/output, a very complex processing system is not required within the application until the client responds. For example: Chat server, in a very popular chat application, at the same time there are often a large number of users and chat server between the concurrent connection, and the server itself does not have a very complex processing. node. JS is the key to solving these types of Web sites or e-commerce sites where servers are often able to receive thousands of data per second and write them to a database.

2. Installation

Mac System: Brew Install node--with NPM

Ubuntu:sudo apt get install Nodejs

node. JS Official website: https://nodejs.org/en/Download the response to the installation package for installation.

  

node. JS (i) Introduction and installation

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.