检查哪个进程正在使用端口 $ lsof -i :[端口号] Command lsof Description 查找哪个PID正在监听特定端口。用法:lsof -i :8080 Deep Dive 如果没有输出,请尝试使用 `sudo` 运行。 Related 如何强制结束进程 列出所有运行中的进程