Home  >  Article  >  Web Front-end  >  把Node.js程序加入服务实现随机启动_node.js

把Node.js程序加入服务实现随机启动_node.js

WBOY
WBOYOriginal
2016-05-16 15:52:511242browse

如何开机就启动node.js程序

复制代码 代码如下:

npm install -g qckwinsvc

定位到安装目录,node_modules/.bin/

运行如下命令:

复制代码 代码如下:

> 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


卸载:
复制代码 代码如下:

> 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