linux端口占用查询

98 阅读1分钟

居安思危,思则有备,有备无患

一、lsof命令,没有的话需要安装

lsof  -i:3306

二、netstat命令

netstat -ntulp | grep 3306