- 查看端口占用的进程号PID:
netstat -ano | findstr "80"
- 查看占用进程名称:
tasklist | findstr "4836" > nginx.exe 4836 Service 0 2,868
- 杀进程:以管理员权限运行cmd
taskkill /im nginx.exe -f
批量杀掉nginx进程:taskkill /fi “imagename eq nginx.EXE” /f
netstat -ano | findstr "80"
tasklist | findstr "4836" > nginx.exe 4836 Service 0 2,868
taskkill /im nginx.exe -f
批量杀掉nginx进程:taskkill /fi “imagename eq nginx.EXE” /f