当前位置:网站首页>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
边栏推荐
- 黑客的入侵方式你知道几种?
- Some basic configurations in interlij idea
- Alicloud: could not connect to SMTP host: SMTP 163.com, port: 25
- DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
- BMP JPEG picture to vector image contourtrace
- SQL Server Connectors By Thread Pool | DTSQLServerTP 插件使用说明
- Leetcode 542, 01 matrix
- How can matlab obtain the truncated image in trainingimagelabeler
- Operation of numpy array
- 上海回应“面粉官网是非法网站”:疏于运维被“黑”,警方已立案
猜你喜欢
Installation and use of NVM
GO语言开发天天生鲜项目第三天 案例-新闻发布系统二
LeetCode 542、01 矩阵
高薪程序员&面试题精讲系列91之Limit 20000加载很慢怎么解决?如何定位慢SQL?
Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
【PTA】L1-002 打印沙漏
Tensorflow 2 basic operation dictionary
Three. Based on ply format point cloud voxel model JS upload interface writing
Commit and ROLLBACK in DCL of 16mysql
随机推荐
[PTA] l1-006 continuity factor
Leetcode 1337. Row K with the weakest combat effectiveness in the matrix
On BIM data redundancy theory
[problem solving] 'ASCII' codec can't encode characters in position XX XX: ordinal not in range (128)
Solution to PowerDesigner's failure to connect to MySQL in x64 system
Sqoop imports data from Mysql to HDFS using lzop compression format and reports NullPointerException
Leetcode 994, rotten orange
C migration project record: modify namespace and folder name
Shanghai a répondu que « le site officiel de la farine est illégal »: l'exploitation et l'entretien négligents ont été « noirs » et la police a déposé une plainte
2022dasctf APR x fat epidemic prevention challenge crypto easy_ real
[graph theory brush question-4] force deduction 778 Swimming in a rising pool
An error is reported in the initialization metadata of the dolphin scheduler -- it turns out that there is a special symbol in the password. "$“
JDBC tool class jdbcconutil gets the connection to the database
Development of Matlab GUI bridge auxiliary Designer (functional introduction)
Vscode download speed up
ArcGIS js api 4. X submergence analysis and water submergence analysis
【PTA】L1-002 打印沙漏
【问题解决】‘ascii‘ codec can‘t encode characters in position xx-xx: ordinal not in range(128)
An error is reported when sqoop imports data from Mysql to HDFS: sqlexception in nextkeyvalue
Parsing methods of JSON data in C - jar and jobobject: error reading jar from jsonreader Current JsonReader item