lsof #查看端口对应的pid,通过kill -9杀死对应的进程
格式
lsof 参数
常用命令
lsof -i
查看指定端口22的pid
lsof -i :22
lsof -u root
显示所有打开的文件