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
WBOYOriginal
2016-05-16 15:52:511316browse

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

Statement:
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