mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* Add Chinese translations for glances, ifconfig, kill, killall, nano, neofetch, pm2, and screen. * Improvement to the Chinese translation for screen. * Fix formatting issues in glances, pm2, and neofetch Chinese versions * Update nano and screen Chinese pages to match English page. * Update pages.zh/common/screen.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages.zh/common/nano.md Ensure the format is the same as the English version Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * glances, nano: Ensure Chinese version matches English format * nano: Chinese translation correction * nano: Second revision of Chinese translation, fixing all missing backticks. * nano: Handle missing quotation marks in Chinese translation * Update pages.zh/common/neofetch.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> * Update pages.zh/common/ifconfig.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> * Update pages.zh/common/glances.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> * Update pages.zh/common/glances.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> * Update neofetch.md * Update neofetch.md --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
33 lines
552 B
Markdown
33 lines
552 B
Markdown
# pm2
|
|
|
|
> Node.js 的进程管理工具。
|
|
> 用于日志管理、监控和配置进程。
|
|
> 更多信息:<https://pm2.keymetrics.io>.
|
|
|
|
- 启动一个进程并指定名称,以便后续操作使用:
|
|
|
|
`pm2 start {{app.js}} --name {{应用名称}}`
|
|
|
|
- 列出所有进程:
|
|
|
|
`pm2 list`
|
|
|
|
- 监控所有进程:
|
|
|
|
`pm2 monit`
|
|
|
|
- 停止一个进程:
|
|
|
|
`pm2 stop {{应用名称}}`
|
|
|
|
- 重启一个进程:
|
|
|
|
`pm2 restart {{应用名称}}`
|
|
|
|
- 保存当前所有进程,便于稍后恢复:
|
|
|
|
`pm2 save`
|
|
|
|
- 恢复之前保存的进程:
|
|
|
|
`pm2 resurrect`
|