方法1: lsof命令,即ls open files lsof -i:端口号 注:lsof默认没有安装,可yum install lsof 进行安装 方法2: netstat命令 netstat -tunpl | grep 端口号