当前位置:网站首页>【pm2】pm2常用命令
【pm2】pm2常用命令
2022-07-23 17:35:00 【沉默小管】
npm install pm2 -g # 全局安装pm2
pm2 start app.js -i 4 # 后台运行pm2,启动4个app.js
# 也可以把'max' 参数传递给 start
# 正确的进程数目依赖于Cpu的核心数目
pm2 start app.js --name my-api # 命名进程
pm2 list # 显示所有进程状态
pm2 monit # 监视所有进程
pm2 logs # 显示所有进程日志
pm2 stop all # 停止所有进程
pm2 restart all # 重启所有进程
pm2 reload all # 0 秒停机重载进程 (用于 NETWORKED 进程)
pm2 stop 0 # 停止指定的进程
pm2 restart 0 # 重启指定的进程
pm2 startup # 产生 init 脚本 保持进程活着
pm2 web # 运行健壮的 computer API endpoint (http://localhost:9615)
pm2 delete 0 # 杀死指定的进程
pm2 delete all # 杀死全部进程
边栏推荐
- 二叉树高度 [log2n]+1与log2(n+1)是否相等
- 11. Basic concepts of neural network
- lendingclub贷款状态loan status业务详解-current,charge off,issued,Fully Paid,grace period
- VB connecting access database customization
- What is the difference between preamplifier and power amplifier?
- Fragment
- Emgucv common function function description "suggestions collection"
- LeetCode每日一题(1514. Path with Maximum Probability)
- TCL scripting language foundation (2)
- 基于FPGA的SPI通讯协议实现
猜你喜欢

Know two things: how does redis realize inventory deduction and prevent oversold?
【论文阅读】GETNext: Trajectory Flow Map Enhanced Transformer for Next POI Recommendation

Little fish sends lidar | just dinner is the first lottery

Tuple error caused by different regularization
[paper reading] gettext: trajectory flow map enhanced transformer for next POI recommendation

Mbio | the sun Chaomin formation of Ocean Institute has verified in situ the new pathway of microbial mediated elemental sulfur formation in the deep sea

【leetcode天梯】链表 · 022 链表中倒数第k个节点

As a background developer, you must know two kinds of filters
![[machine learning] Wu Enda: lifelong learning](/img/f2/a729c026ed55506e63878d0d317676.jpg)
[machine learning] Wu Enda: lifelong learning

lendingclub贷款状态loan status业务详解-current,charge off,issued,Fully Paid,grace period
随机推荐
Brief introduction of Perl language
CTF misc learning summary "suggestions collection"
11.神经网络基本概念
elk筆記25--快速體驗APM
GVIM/VIM使用技巧
H7-TOOL的CANFD/CAN接口脱机烧写操作说明, 已经更新(2022-07-12)
树学习总结
Implementation of SPI communication protocol based on FPGA
移动语义和完美转发浅析
Understanding and simple implementation of time2vec
Elk note 25 - expérience rapide APM
Shell
Recognition engine ocropy- & gt; ocropy2-> Ocropus3 summary
[C language] program environment and preprocessing
Mee | Zhejiang University Chenglei group develops a new method for designing and constructing synthetic flora
【leetcode天梯】链表 · 203 移除链表元素
【C语言】程序环境和预处理
电子元件-电阻
AE tutorial, how to animate illustrator layered documents in after effects?
What is the use of tampermonkey?