Skip to content

Commit

Permalink
added command for listing + killing processes (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-chiu committed Mar 11, 2022
1 parent ce47064 commit 28eb3c2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/basic-usage/serving.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,20 @@ kill -9 87896

where 87896 is the process' PID number as identified by running the `netstat` command.

_Note:_ There could be more than one process listening and so you may have to use the `kill` command multiple times.

For example, if you are trying to close port 9001, you can use the following command to list all the processes that are running on port 9001:

```bash
lsof -i:9001
```

For a more aggressive method to kill all processes listening to a particular port (e.g. port 9001), you can use the following command:

```bash
kill -9 $(lsof -t -i:9001)
```

---

## Copy data off the server
Expand Down

0 comments on commit 28eb3c2

Please sign in to comment.