在运行 nodojs
程序时 ,
没有正常 ctrl+c
正常结束 进程, 导致 8080
端口一直可以访问
想结束掉 8080 端口
➜ react-boilerplate2 git:(master) ✗ sudo lsof -n -P| grep :8080
➜ react-boilerplate2 git:(master) ✗ lsof -i :8080
➜ react-boilerplate2 git:(master) ✗ lsof -i tcp:8080
➜ react-boilerplate2 git:(master) ✗
结果死活都找不到 8080 端口
而访问 http://localhost:8080/ 一直有效
嘻嘻,你重启下就没啦,不过说bash命令吧
首先你要找到您的pid