Ubuntu Installation Nodejs

Source: Internet
Author: User

ubuntu12.04 64bit

Nodejs-v0.8.14.tar.gz

node. JS is a server-side programming framework based on Google V8+javascript. But node. JS is not a JS application, it should be said JS running platform. It uses event-driven, asynchronous programming, and is designed for network services.

node. JS performs well, according to founder Ryan Dahl, performance is an important factor for node. js, and choosing C + + and V8 instead of Ruby or other virtual machines is performance-based. node. JS is also very bold in its design, running in single-process, single-threaded mode, The event-driven mechanism is implemented by node. JS, which maintains an event loop queue efficiently through internal single threads, without multi-threading resource usage and context switching, meaning that node. js is doing everything with event-driven response to large-scale HTTP requests.

Installation steps:

First make sure the system is installed to python,gcc,g++, if not installed:

$ sudo apt-get install python

$ sudo apt-get install build-essential

$ sudo apt-get install gcc

$ sudo apt-get install g++

Download the latest source code package from Nodejs official website http://nodejs.org/: node-v0.8.14.tar.gz

Extract:

$ TAR-ZXF node-v0.8.14.tar.gz

$ CD node-v0.8.14

Default installation:

$./configure

$ make

$ sudo make install

Select directory mode to install:

$./configure–prefix=/usr/node

$ make-j 5 #5 =cpu of +1

$ sudo make install

At the end of the installation, you can check the installed version with the following command:

$ node–version

v0.8.14

Once the installation is successful, you can start doing some fun things with Nodejs.

There are good entry documents in this http://wenku.baidu.com/view/22a03f6d011ca300a6c39092.html link

Ubuntu Installation Nodejs

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.