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

How to install pm2 under Linux in one minute

藏色散人
Release: 2021-11-08 16:35:21
forward
3834 people have browsed it

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
Copy after login

Create soft connection

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

View the process

pm2 list
Copy after login

Start

The thread name is in quotation marks

pm2 start npm --name "my-nuxt" -- run start
Copy after login

End the thread

pm2 delete my-nuxt
Copy after login

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!

Related labels:
source:juejin.im
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template