Add the Node. js program to the service for random startup
This article mainly introduces how to add the Node. js program to the Service to achieve random start. This article uses qckwinsvc to achieve this requirement and explains how to install and use qckwinsvc. For more information, see
How to start the node. js program upon startup
The Code is as follows:
Npm install-g qckwinsvc
Go to the installation directory, node_modules/. bin/
Run the following command:
The Code is as follows:
> Qckwinsvc
Prompt: Service name: [name for your service]
Prompt: Service description: [description for it]
Prompt: Node script path: [path of your node script]
Service installed
Uninstall:
The Code is as follows:
> Qckwinsvc -- uninstall
Prompt: Service name: [name of your service]
Prompt: Node script path: [path of your node script]
Service stopped
Service uninstalled