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