linux安装pm2

Others 2018-07-28 00:06:55 2018-07-28 00:06:55 2658 次浏览

npm install -g pm2

提示pm2命令未找到

 ln -s /software/node/node-v10.7.0-linux-x64/lib/node_modules/pm2/bin/pm2   /usr/local/bin

如果报错 file exits

那么 cd /usr/local/bin

rm -rf ./pm2

重新建立软连接 ln -s /software/node/node-v10.7.0-linux-x64/lib/node_modules/pm2/bin/pm2   /usr/local/bin