Install Nodejs under Linux (Ubuntu) before installing Nodejs, if g++ and Libssl-dev are not installed, install it first, installation method is as follows: $ sudo apt-get install g++ $ sudo apt-get install L Ibssl-dev
Next, you can download the installation Nodejs, the current stable version of node. JS 0.6.18, the following is the installation steps: $ wget http://nodejs.org/dist/v0.8.16/ node-v0.8.16.tar.gz (Modify the corresponding version number according to the version you want)
$ tar zxvf node-v0.8.16.tar.gz $./configure $ make && make install
After installation, enter: $ node-v v0.8.16 in the console to see the installed Nodejs version number.
>console.log (' Hello world! '); install Nodejs on the Redhat is the same step, if the system does not g++ problems, run a su-c "yum install gcc-c++", The system will be installed g++, Redhat above the g++ is gcc-c++. This is a point to remember.
Steps to install Nodejs on Linux and attention issues