#StackBounty: #node.js #windows-services #httpserver #nssm npm http-server as a Windows Service

Bounty: 50

I am using http-server to host one of my local folders:
enter image description here

enter image description here

http-server ./

As you can see I downloaded nssm.exe. I am wondering how I can make this http-server command as service so I can permanently host this folder even when computer restarts? One of the suggestions I found is to use nssm but I am not sure how I can do it. I type this in my cmd:

nssm install httpserver

and then get:

enter image description here

now how to start the http-server ./ command ? Where I should type it and how?

Also if there is easier way to do it without nssm I am open to see it.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.