Created
December 26, 2019 07:18
-
-
Save jmstfv/823cebb2f0d014d81e93d204e856dd22 to your computer and use it in GitHub Desktop.
Kill the process by the port number
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
# replace 4567 with a target port number of the process | |
# run lsof with sudo if the process was spawned by the root user | |
kill -9 $(lsof -ti tcp:4567) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment