centos7默認並沒有安裝pstree,所以會有pstree:command not found
安裝方式使用命令即可。
yum install psmisc -y已安裝:psmisc.x86_64 0:22.20-9.el7
完畢!