根据端口号,找到对应进程
yum install net-tools [On CentOS/RHEL]
apt install net-tools [On Debian/Ubuntu]
zypper install net-tools [On OpenSuse]
pacman -S net-tools [On Arch Linux]netstat -nat|grep -i "3306"|wc -llsof -i:22#找出非监听端口
netstat -ntp | grep ":22"
#找出监听端口
netstat -ntpl | grep ":22"ps -ef|grep $pid最后更新于