I have a HTTP server that I startup using the following command
username@machine:~project/www$ http-server . --cors
It typically starts on port 8080, but if enter ctrl+z and then try to run the same command again, it will start on port 8081.
How can I shut down the previous server so that 8080 becomes free again?