?
- 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
时间: 2024-10-11 10:58:55