1、在 Mac OS上 brew install pstree2、在 Fedora/Red Hat/CentOS yum -y install psmisc3、在 Ubuntu/Debian apt-get install psmisc