We're going to use a local system account. Manual and disabled are if you don't want this to be an automatic starting service. Automatic delayed start, that will be if you want the service to not start initially and give a chance for something else to start. Startup type, will either be automatic, so when the service reboots the service restarts, which is what you would normally want. The description should be something meaningful who would understand what the service does. The details, we will keep the display name the same. The service name is what we gave it when we launched this GUI, and that's fine. In our case, we would use start, as in node-start. Finally, we need to give the arguments we would give to the command line. This is the directory that our app lives in. The next thing we need is a startup directory. This is what we're going to use to start our node service. Within the NSSM GUI, the first thing we want to do is find the path to our node.exe. I recommend you prefix all your services with a common set of initials, making them easier to find in the task manager. After installing NSSM, if you open a command prompt with administration access and navigate to the directory, entering NSSM on its own will give you a list of commands. NSSM stands for the Non-Sucking Service Manager, and you can download it from this URL. Instructor: One of the easiest ways to install a node application as a window service is to use an application called NSSM.
0 Comments
Leave a Reply. |