Skip to content

Instantly share code, notes, and snippets.

@sharepointoscar
Last active May 2, 2020 17:17
Show Gist options
  • Select an option

  • Save sharepointoscar/6772beea817fec054a053c7f38fa25a8 to your computer and use it in GitHub Desktop.

Select an option

Save sharepointoscar/6772beea817fec054a053c7f38fa25a8 to your computer and use it in GitHub Desktop.

Revisions

  1. Oscar Medina revised this gist Jan 28, 2020. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion Find and Kill Process
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,8 @@
    lsof -i:8080

    # Just kill it
    kill -9 $(lsof -t -i:8080)
    kill -9 $(lsof -t -i:8080)


    # find process listening on port 9200
    lsof -nP -i4TCP:$PORT | grep LISTEN
  2. sharepointoscar created this gist Feb 13, 2019.
    5 changes: 5 additions & 0 deletions Find and Kill Process
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Find process running on port 8080
    lsof -i:8080

    # Just kill it
    kill -9 $(lsof -t -i:8080)