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:
- Yum install gcc openssl-devel gcc-c ++ compat-gcc-34 ++
Switch/usr/src
Directory:
- Cd/usr/src
Download nodejs. The latest version is 0.10.31:
- Wget http://nodejs.org/dist/v0.10.31/node-v0.10.31.tar.gz
Decompress and switch the directory:
- Tar zxf node-v0.10.31.tar.gz
- Cd node-v0.10.31
Execute the configure script:
- ./Configure
Then execute the compilation:
- Make
- 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: