작은 콩 개발자/등등

[엔에스에스엠/nssm] nssm 설치, 사용법, windows 서비스 생성, nginx 자동시작

귤치치 2022. 2. 8. 10:12

설치

https://nssm.cc/download

 

NSSM - the Non-Sucking Service Manager

NSSM - the Non-Sucking Service Manager Windows 10, Server 2016 and newer 2017-04-26: Users of Windows 10 Creators Update or newer should use prelease build 2.24-101 or any newer build to avoid an issue with services failing to start. If for some reason you

nssm.cc

1. 다운로드 클릭 후 다운 받는다.

2. nssm enter

3. nssm install [서비스로 생성할 이름] enter

4. 허용

5. 서비스로 등록할 주소로 가서 클릭해준다.

nginx 를 시작, 중지 하는 것에 작업관리자를 통하는 불편함이 있고  재시작의 경우에는 항상 직접 nginx를 켜주어야 한다는 불편함이 있으므로 서비스를 생성해주었다. 

6. 서비스에 들어가 본다.