If you are running a server on your local machine, you can stop the server by pressing CTRL + C in the terminal window where the server is running. If you are running a server on a remote machine, you can stop the server by SSH'ing into the machine and running the command "sudo shutdown -h now".