当前位置:网站首页>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_vueshopIt'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 nameYou can also select the corresponding id value , As shown below :
pm2 restart 0Here 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
边栏推荐
- 内网渗透之DOS命令
- ArcGIS js api 4. X submergence analysis and water submergence analysis
- 三十.什么是vm和vc?
- The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network
- Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 64
- 堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
- Click an EL checkbox to select all questions
- Modeling based on catiav6
- XXXI` Prototype ` displays prototype properties and`__ proto__` Implicit prototype properties
- How can matlab obtain the truncated image in trainingimagelabeler
猜你喜欢

How to configure SSH public key in code cloud

JS arrow function user and processing method of converting arrow function into ordinary function

Monte Carlo py solves the area problem! (save pupils Series)
![Azkaban recompile, solve: could not connect to SMTP host: SMTP 163.com, port: 465 [January 10, 2022]](/img/1a/669c330e64af8e75f4b05e472d03d3.png)
Azkaban recompile, solve: could not connect to SMTP host: SMTP 163.com, port: 465 [January 10, 2022]

Livego + ffmpeg + RTMP + flvjs to realize live video

Plato Farm元宇宙IEO上线四大,链上交易颇高

2022dasctf APR x fat epidemic prevention challenge crypto easy_ real

LeetCode 74、搜索二维矩阵

內網滲透之DOS命令

RT-1052学习笔记 - GPIO架构分析
随机推荐
Solve the Chinese garbled code of URL in JS - decoding
bounding box iou
Rt-1052 learning notes - GPIO architecture analysis
高薪程序员&面试题精讲系列91之Limit 20000加载很慢怎么解决?如何定位慢SQL?
2022dasctf APR x fat epidemic prevention challenge crypto easy_ real
Numpy mathematical function & logical function
I JS deep copy and shallow copy
Imitation Baidu map realizes the three buttons to switch the map mode by automatically shrinking the bottom
How do BIM swindlers cheat? (turn)
How to configure SSH public key in code cloud
Paper writing 19: the difference between conference papers and journal papers
Livego + ffmpeg + RTMP + flvjs to realize live video
Leetcode 232, queue with stack
The ODB model calculates the data and outputs it to excel
Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
Implementation of mypromise
[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
[PTA] l1-002 printing hourglass
Some basic knowledge of devexpress report development
Es index (document name) fuzzy query method (database name fuzzy query method)