Description: With Yum benefits in fact a lot, environment variables do not configure, configuration file in everyone familiar place, through RPM-QL xxx can know all the files of the place and so on.
node. JS (8.x)
First, installation and configuration
1. Install node. js
# Curl--silent--location https:///rpm.nodesource.com/setup_8.x | sudo bash-yumInstall -y Nodejs
2, Installation PM2
Install pm2-g
3. Verification
// node. js, normal output version # node--version// NPM, normal output version # NPM--version// PM2, normal output version # PM2--version
Ii. description
The script above corresponds to an official
https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora
Official scripts include Ubuntu in addition to CentOS, including different versions of node. js
Https://github.com/nodesource/distributions
CentOS 6.9 Installs the specified version of node. js with Yum