Rumata
Rumata

Reputation: 1047

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?

Upvotes: 6

Views: 6241

Answers (2)

Jorawar Singh
Jorawar Singh

Reputation: 7621

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.

Upvotes: 2

LeleDumbo
LeleDumbo

Reputation: 9340

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

Upvotes: 3

Related Questions