1. npm install -g qckwinsvc
  2. 定位到安装目录,node_modules/.bin/
  3. 运行如下命令:

> 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

  1. 卸载:

> qckwinsvc --uninstall

prompt: Service name: [name of your service]

prompt: Node script path: [path of your node script]

Service stopped

Service uninstalled

posted on 2015-06-24 16:01  今夜太冷  阅读(612)  评论(0编辑  收藏  举报