安装部署 · 2022年4月27日 0

Linux: pm2安装

安装部署

安装NODEJS:

centos 安装方式

curl -sL https://rpm.nodesource.com/setup_16.x | sudo bash -
sudo yum install nodejs -y

debian 安装方式

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
 apt-get install -y nodejs

安装NPM:

使用默认源安装

npm install pm2 -g

指定国内源安装

npm --registry https://registry.npm.taobao.org install pm2 -g