Install Nodejs,centos 6.5 system under Linux

Source: Internet
Author: User

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

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.