[shell | 关闭端口 | lsof]

📅 2026/7/3 16:11:59 👁️ 阅读次数 📝 编程学习
[shell | 关闭端口 | lsof]
lsof -i :3000
kill -9 <PID>

或者一行搞定:

lsof -ti :3000 | xargs kill -9