Windows、MacOS 和 Linux 如何查找并停止占用端口的服务? OrionPax 2019-07-20 2025-02-12 约 79 字 预计阅读 1 分钟 目录 Windows MacOS 或 Linux 1 Windows 1 2 3 4 # windows 查看占用端口的进程 netstat -ano|findstr <端口号> # windows 停止进程 taskkill /f /t /im <进程id> 2 MacOS 或 Linux 1 2 3 4 # 查看占用端口的进程 lsof -i:<port> # 停止进程 kill <pid> Please enable JavaScript to view the comments powered by Utterances.