This article uses the Nodejs to compile the installation method through the source code
Compilation requires the support of the gcc-c++ compiler and the Openssl-devel library if it is not necessary to install it first.
Under CentOS You can do it first: Yum install gcc-c++ Openssl-devel
I installed the version is v0.10.30, the different version as long as the corresponding version number can be downloaded.
Website version address: https://nodejs.org/dist/
Then start the installation: under which folder to install, go to the specified folder, execute the following command,
wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz
Unzip the file
Tar zxvf node-v0.10.30.tar.gz
Go to Node directory
CD node-v0.10.30
Check the required configuration, do the following, note that there is. This configure is a file under the node directory, and if this file does not exist, the installation method will be different from the one written in this article.
./configure
execution, this step waiting time is longer
Make
Perform
Make install
Finally, use NODE-V to verify that the installation was successful, and if successful, the version number is displayed.
Install Nodejs,centos 6.5 system under Linux