执行如下命令: lsof -i tcp:8080 #8080为查询的端口号 会展示该端口的使用情况,然后kill -9 PID的值即可关闭该端口 相关文章: 2022-12-23 2021-10-21 2021-12-04 2021-12-04