Created
May 7, 2020 02:05
-
-
Save tutumagi/ad7e0e12e770f02920327846af6495ef to your computer and use it in GitHub Desktop.
kill process with port #shell
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
pid=`lsof -i:9090 | awk '{print $2}'` | |
echo $pid | |
for i in $pid | |
do | |
kill -9 $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment