Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I stop the http server, downloaded using 'npm install http-server"?

How can I stop the http server, downloaded using 'npm install http-server" comand in terminal (console) and launched then?

like image 936
Rumata Avatar asked Aug 13 '16 13:08

Rumata


2 Answers

Simply Ctrl+C, if you read the output after you launch it, you should see:

Starting up http-server, serving xxx
Available on:
  http://<some ip>:<some port>
Hit CTRL-C to stop the server
like image 161
LeleDumbo Avatar answered Nov 15 '22 07:11

LeleDumbo


Its built on node so Kill the node process for stopping it if it stuck. You can find all the node process ids and see what I'd your server have and kill that.

like image 35
Jorawar Singh Avatar answered Nov 15 '22 07:11

Jorawar Singh