基于Centos下使用lsof提示-bash: lsof: command not found

一、问题阐述

Centos系统下使用lsof命令查看端口占用程序提示【-bash: lsof: command not found】

未分类

二、解决方法

使用yum安装下lsof;

yum install lsof -y

未分类

三、接下来我们再次使用命令查看

未分类

lsof查看都端口命令:lsof -i:(端口号)