Last active
February 16, 2023 03:35
-
-
Save RikoKami/e7d4b286ec391136018dadc02e95a3f8 to your computer and use it in GitHub Desktop.
destroying ports in OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Windows | |
netstat -ano | findstr 8085 | |
# Proto End Local End Externo Estado PID | |
TCP 0.0.0.0:8085 0.0.0.0:0 LISTENING 6000 | |
TCP 127.0.0.0:8085 127.0.0.0:61588 CLOSE_WAIT 6000 | |
TCP 127.0.0.0:8085 127.0.0.0:8085 FIN_WAIT_2 27340 | |
TCP [::]:8085 [::]:0 LISTENING 6000 | |
taskkill /PID 6000 /f | |
## Bash | |
taskkill //PID 6000 //f | |
# Linux | |
kill -9 $(lsof -t -i:8085) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment