Home  >  Article  >  Operation and Maintenance  >  How to install pm2 under Linux in one minute

How to install pm2 under Linux in one minute

藏色散人
藏色散人forward
2021-11-08 16:35:213799browse

The following column linux system tutorial will introduce to you how to install pm2 under Linux. I hope it will be helpful to friends in need!

How to install pm2 under Linux in one minute

Install pm2 under linux

Global installation

npm install pm2 -g

Create soft connection

ln -s /root/node-v10.14.2-linux-x64/bin/pm2 /usr/local/bin/

View the process

pm2 list

Start

The thread name is in quotation marks

pm2 start npm --name "my-nuxt" -- run start

End the thread

pm2 delete my-nuxt

Recommended study: "linux video tutorial

The above is the detailed content of How to install pm2 under Linux in one minute. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:juejin.im. If there is any infringement, please contact admin@php.cn delete