Skip to content

Instantly share code, notes, and snippets.

@tutumagi
Created May 7, 2020 02:05
Show Gist options
  • Save tutumagi/ad7e0e12e770f02920327846af6495ef to your computer and use it in GitHub Desktop.
Save tutumagi/ad7e0e12e770f02920327846af6495ef to your computer and use it in GitHub Desktop.
kill process with port #shell
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