windows端口
1.查看当前占用端口情况
1. 命令行输入
netstat -ano
2.资源监视器,网络选项卡
2. 查看特定端口是否被占用
netstat -ano | findstr :12345
3.查看特定进程的详细信息,假设进程ID是6789
tasklist | findstr 6789
4.杀死特定进程,假设进程ID是6789
taskkill /F /PID 6789
1.查看当前占用端口情况
1. 命令行输入
netstat -ano
2.资源监视器,网络选项卡
2. 查看特定端口是否被占用
netstat -ano | findstr :12345
3.查看特定进程的详细信息,假设进程ID是6789
tasklist | findstr 6789
4.杀死特定进程,假设进程ID是6789
taskkill /F /PID 6789