title: CentOS pstree安装 tags: [“CenotOS”, “pstree”,“cicd”] date: 2022-05-04 draft: false
pstree安装
1、在 Mac OS上
brew install pstree
2、在 Fedora/Red Hat/CentOS
yum -y install psmisc
3、在 Ubuntu/Debian
apt-get install psmisc
ps显示各进程关系,列入:查看nginx进程关系。
ps aux | grep nginx

像一棵树一样展示。
评论