Mac 关闭/结束 端口

359 阅读1分钟

Mac 系统如果需要关闭端口可以使用以下命令 例如:关闭 Sprig boot 默认的 8080

lsof -i:8080

再根据罗列的进行进行进程关闭

kill 'pid编号'

强制关闭进程

kill -9 'pid编号'