title: CentOS Pstree Installation tags: [“CenotOS”, “pstree”,“cicd”] date: 2022-05-04 draft: false

Pstree Installation

1、在 Mac OS上

brew install pstree     

2、在 Fedora/Red Hat/CentOS

yum -y install psmisc

3、在 Ubuntu/Debian

apt-get install psmisc

ps显示各进程关系,列入:Viewnginx进程关系。

ps aux | grep nginx

image-20230316221636132

像一棵树一样展示。