当前位置:网站首页>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
边栏推荐
- BMP JPEG 图片转换为矢量图像 ContourTrace
- Solution to PowerDesigner's failure to connect to MySQL in x64 system
- Identification of bolt points in aerial photography based on perception
- Scrapy教程 - (2)寫一個簡單爬蟲
- LeetCode 709、转换成小写字母
- Common form verification
- LeetCode 1346、检查整数及其两倍数是否存在
- Commit and rollback in DCL of 16 MySQL
- JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
- Syntax Error: TypeError: this. getOptions is not a function
猜你喜欢
Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
Recommend an open source free drawing software draw IO exportable vector graph
Modeling based on catiav6
Plato Farm元宇宙IEO上线四大,链上交易颇高
Leetcode 994, rotten orange
BMP JPEG 图片转换为矢量图像 ContourTrace
Actual measurement of automatic ticket grabbing script of barley network based on selenium (the first part of the new year)
Zdns was invited to attend the annual conference of Tencent cloud basic resources and share the 2020 domain name industry development report
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
随机推荐
Recommend an open source free drawing software draw IO exportable vector graph
三十一. `prototype`显示原型属性和`__proto__`隐式原型属性
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
Click an EL checkbox to select all questions
Azkaban recompile, solve: could not connect to SMTP host: SMTP 163.com, port: 465 [January 10, 2022]
Es index (document name) fuzzy query method (database name fuzzy query method)
The construction and use of Fortress machine and springboard machine jumpserver are detailed in pictures and texts
Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
【PTA】整除光棍
Shanghai responded that "flour official website is an illegal website": neglect of operation and maintenance has been "hacked", and the police have filed a case
[talkative cloud native] load balancing - the passenger flow of small restaurants has increased
LeetCode 1346、检查整数及其两倍数是否存在
A login and exit component based on token
Tensorflow 2 basic operation dictionary
Automatically fill in body temperature and win10 task plan
6-5 字符串 - 2. 字符串复制(赋值) (10 分)C语言标准函数库中包括 strcpy 函数,用于字符串复制(赋值)。作为练习,我们自己编写一个功能与之相同的函数。
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127
The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network
LeetCode 232、用栈实现队列
I JS deep copy and shallow copy