Created
February 3, 2020 19:59
-
-
Save sheanhoxie/9f881933973c2b8c382da0d2b2d30234 to your computer and use it in GitHub Desktop.
Sometimes running xdebug with PHPStorm will not kill a php built-in web server after it's done, resulting in an error saying that something is already listening on that port.
This file contains hidden or 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
| Find what's listening on port 8080 | |
| ================================== | |
| sudo lsof -P -iTCP -sTCP:LISTEN | grep -i 8080 | |
| ex. output | |
| ---------- | |
| php 8046 username 5u IPv4 0xd9c3cdd5c98d4b65 0t0 TCP localhost:8080 (LISTEN) | |
| Kill It | |
| ======= | |
| kill 8046 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment