怎么一下子关闭某端口的所有进程

有时某端口的所有进程比较多,怎么一下子关闭某端口的所有进程,可以试下该命令

kill -9 $(lsof -i:端口号 -t)

 

おすすめ

転載: blog.csdn.net/loveyoulouyou/article/details/119714602