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:
NPM-V # will output version information
Copy Code code as follows:
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!