Simple method of Node.js installation in Centos7 _node.js

Source: Internet
Author: User
Tags install node

Recently, I have been more interested in learning Node.js. The following is a small set for everyone to bring the CENTOS7 in the Node.js installation of simple method, in this record, to facilitate their own also convenient for everyone, together to see!

Install Node.js

Landing CentOS

Terminal Login $ ssh root@192.168.0.23 IP can be a LAN or a public network IP.

Download node

According to your system, find https://nodejs.org/en/download/in the website you need to download the version. For example, I choose the Linux Binaries (x86/x64) 64bit, right click on the version you need to copy the address, through the command download Nodejs install compression package.

Copy Code code as follows:

$ wget HTTPS://NODEJS.ORG/DIST/V4.4.4/NODE-V4.4.4-LINUX-X64.TAR.XZ

If you wget command does not exist, you can install the download tool wget by yum install wget command. If you are the smallest version of the CentOS need to be installed

Copy Code code as follows:

Yum-y install gcc make gcc-c++ openssl-devel wget

Decompression Installation

# no use ' gzip ' compression to remove ' Z ' parameters

Copy Code code as follows:

$ sudo tar--strip-components 1-xzvf node-v*-c/usr/local

View Installation

You can see if the installation was successful! General installation will be reported error messages, if no error message, you can call the node command to test the success of the installation!

NODE-V # will output version information

Copy Code code as follows:

# v6.9.1

NPM-V # will output version information

Copy Code code as follows:

# 3.10.8

The above is a small set to introduce the CENTOS7 in the Node.js installation of simple method, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Related Article

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.