Home > Web Front-end > JS Tutorial > Add the Node.js program to the service to achieve random startup_node.js

Add the Node.js program to the service to achieve random startup_node.js

WBOY
Release: 2016-05-16 15:52:51
Original
1320 people have browsed it

How to start the node.js program at boot

Copy code The code is as follows:

npm install -g qckwinsvc

Navigate to the installation directory, node_modules/.bin/

Run the following command:

Copy code 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:
Copy code 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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template