win系统
杀死占用某个端口的进程号
-
netstat -ano | findstr 3000
netstat用于检测端口情况,findstr类似linux系统grep
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/e716bcf499c214c0351a53369d656449.png)
可以看到占用该端口的进程号为6676
-
tasklist | findstr 6676
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/4e81a13fd230fab42d2e20d64285f68e.png)
tasklist显示进程列表,该进程是nodejs
-
taskkill -PID 6676 -F
强制删除
windows 计算文件hash值
certutil -hashfile path\文件.exe
linux系统
- ps -ef | grep 3000 获取端口号 lsof -i :3000
- kill -9 pid