내용 보기

작성자

관리자 (IP : 172.17.0.1)

날짜

2020-07-17 14:49

제목

[Node.js] Node.js스크립트 윈도우 서비스 등록 패키지


Node.js로 작성된 App을 윈도우 서비스로 등록해서 자동 실행되도록 처리 할 수 있다.

이에 관련해서 Node.js스크립트를 쉽게 명령어로 윈도우 서비스로 등록 시켜주는 패키지가 있다.

사용 방법은 다음과 같다.


I found the thing so useful that I built an even easier to use wrapper around it (npmgithub).

Installing it:

npm install -g qckwinsvc

Installing your service:

> 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

Uninstalling your service:

> qckwinsvc --uninstall
prompt
: Service name: [name of your service]
prompt
: Node script path: [path of your node script]
Service stopped
Service uninstalled

출처1

https://stackoverflow.com/questions/20445599/auto-start-node-js-server-on-boot

출처2