Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you stop a python SimpleHTTPServer in Terminal? [duplicate]

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?

like image 539
Kelvin Lau Avatar asked May 11 '26 18:05

Kelvin Lau


2 Answers

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

like image 56
Hiro2k Avatar answered May 14 '26 07:05

Hiro2k


Use CTRL+C.

This is a filler text because answer must be 30 characters.

like image 42
Mikko Ohtamaa Avatar answered May 14 '26 08:05

Mikko Ohtamaa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!