CentOS simple operation command and node.js installation method

  • 2020-05-15 02:58:07
  • OfStack

This article illustrates the simple command CentOS and the installation of node.js. I will share it with you for your reference as follows:

View the version of the centos kernel:


uname -a
uname -r

View the linux version:


cat /etc/issue

To see if the system is 64-bit or 32-bit:


getconf LONG_BIT

Install node js

Because node.js requires Python2.6 or more

Note: Python 2.6 or 2.7 is required to build from source tarballs.

View the Python version


python -V

Install dependencies


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

Download the node.js source code and install it


wget http://nodejs.org/dist/v0.12.0/node-v0.12.0.tar.gz
tar -zxf node-v0.12.0.tar.gz
cd node-v0.12.0
./configure && make && make install

I hope this article has helped you with your CentOS server configuration.


Related articles: