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

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

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

猜你喜欢

转载自blog.csdn.net/loveyoulouyou/article/details/119714602