当前位置:网站首页>How to use PM2 management application? Come in and see
How to use PM2 management application? Come in and see
2022-04-23 20:31:00 【Different 213】
pm2 Management applications
pm2 Is a process management tool , You can use it to manage your node process , And look at node State of process , Of course, it also supports performance monitoring , Process daemons , Load balancing and other functions
How to use pm2 ?
1. Global installation is required first pm2
npm install pm2 -g
2. Then enter the project root directory
pm2 start .\app.js --name web_vueshop
--name web_vueshop
: optional ,web_vueshop
It's a custom name
In this way, the service is started successfully .
The example figure shows :
- id Value is unique , Identify this item . You can choose to use a custom name or id value .
3. Introduce some commonly used commands
-
View all running projects :
pm2 ls
-
Restart project :
pm2 restart Custom name
You can also select the corresponding id value , As shown below :
pm2 restart 0
Here id 0 Corresponding to the item in the above figure
-
Stop the project :
pm2 stop Custom name /id value
-
Delete the project :
pm2 delete Custom name /id value
版权声明
本文为[Different 213]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210550450695.html
边栏推荐
- LeetCode 116. Populate the next right node pointer for each node
- Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
- JDBC tool class jdbcconutil gets the connection to the database
- Monte Carlo py solves the area problem! (save pupils Series)
- Livego + ffmpeg + RTMP + flvjs to realize live video
- SQL: query duplicate data and delete duplicate data
- Numpy Index & slice & iteration
- Development of Matlab GUI bridge auxiliary Designer (functional introduction)
- Alicloud: could not connect to SMTP host: SMTP 163.com, port: 25
- 內網滲透之DOS命令
猜你喜欢
An error is reported when sqoop imports data from Mysql to HDFS: sqlexception in nextkeyvalue
Scrapy教程 - (2)寫一個簡單爬蟲
Numpy mathematical function & logical function
LeetCode 542、01 矩阵
The ODB model calculates the data and outputs it to excel
Automatically fill in body temperature and win10 task plan
Identification of bolt points in aerial photography based on perception
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
Handwritten Google's first generation distributed computing framework MapReduce
上海回應“面粉官網是非法網站”:疏於運維被“黑”,警方已立案
随机推荐
Leetcode 1337. Row K with the weakest combat effectiveness in the matrix
Numpy mathematical function & logical function
内网渗透之DOS命令
Numpy - creation of data type and array
The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network
Handwritten Google's first generation distributed computing framework MapReduce
6-5 string - 2 String copy (assignment) (10 points) the C language standard function library includes the strcpy function for string copy (assignment). As an exercise, we write a function with the sam
打新债中签以后怎么办,网上开户安全吗
bounding box iou
The ODB model calculates the data and outputs it to excel
LeetCode 232、用栈实现队列
[PTA] l2-011 play with binary tree
LeetCode 994、腐烂的橘子
XXXI` Prototype ` displays prototype properties and`__ proto__` Implicit prototype properties
Leetcode 709, convert to lowercase
Some basic configurations in interlij idea
[PTA] l1-002 printing hourglass
論文寫作 19: 會議論文與期刊論文的區別
黑客的入侵方式你知道几种?
LeetCode 709、转换成小写字母