Install Node. js in CentOS

Source: Internet
Author: User
Tags install node

Install Node. js in CentOS

The previous article used NSSM to deploy the Node. js solution on Windows servers. At that time, we saw a very popular solution pm2, which unfortunately did not support the win32 system. In the past two days, I installed a CentOS Virtual Machine and tried it. After the installation, I always run the pm2 command, prompting command not found (some other modules can ), after a long time of hard work, I tried all kinds of methods without any solution. Finally, I changed a version of nodejs. Actually, I could ....

Here is a simple record of the installation process, first:

  1. Yum install gcc openssl-devel gcc-c ++ compat-gcc-34 ++

Switch/usr/srcDirectory:

  1. Cd/usr/src

Download nodejs. The latest version is 0.10.31:

  1. Wget http://nodejs.org/dist/v0.10.31/node-v0.10.31.tar.gz

Decompress and switch the directory:

  1. Tar zxf node-v0.10.31.tar.gz
  2. Cd node-v0.10.31

Execute the configure script:

  1. ./Configure

Then execute the compilation:

  1. Make
  2. Make install

Success!

You may also like the following content about Node. js:

Install and configure Node. js v4.0.0 on Ubuntu 14.04/15.04

How to install Node. js in CentOS 7

Build a Node. js development environment in Ubuntu 14.04

Install and configure the Node. js development environment in javasru 12.04

Getting started with Node. Js [PDF + related Code]

Node. js Development Guide hd pdf Chinese version + source code

Node. js getting started Development Guide

Compile and install Node. js in Ubuntu

Node. js details: click here
Node. js: click here

This article permanently updates the link address:

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.