How do you stop a python SimpleHTTPServer in Terminal?

Kelvin Lau picture Kelvin Lau · Nov 25, 2015 · Viewed 9.3k times · Source

I've started a SimpleHTTPServer via the command python -m SimpleHTTPServer 9001.

I'd like to stop it without having to force quit Terminal. What's the keystrokes required to stop it?

Answer

Hiro2k picture Hiro2k · Nov 25, 2015

CTRL + C is usually the right way to kill the process and leave your terminal open.