问题库 Linux / Docker how-to

Linux 如何查看进程

快速答案

ps aux 适合快照,top/htop 适合实时观察资源占用。

bash
ps aux | grep node
top

使用要点

  • 先看服务状态和最近日志,再决定 reload、restart 或结束进程。
  • 生产环境避免直接使用强制结束命令,除非已经确认进程无法正常退出。

相关内容