티스토리 뷰
- AWS EC2(Window)에 서비스를 등록하여 cmd 창이 안켜져 있어도 사용가능해야 함.
- NSSM 설치
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
- 압축 푼 후 운영체제에 맞는 폴더로 접근.
- 해당 폴더에서 cmd 창 오픈 후 서비스 등록 명령어 입력.
(nssm.exe install 서비스명 java -jar 압축파일전체경로)
- 서비스 등록을 했으면 cmd창에 nssm 명령어를 사용하여 서비스 시작.
- nssm 관련 명령어
명령어 | 설명 |
nssm start servicename | 등록된 서비스를 실행. |
nssm stop servicename | 등록된 서비스를 종료. |
nssm restart servicename | 등록된 서비스를 재시작. |
nssm status servicename | 등록된 서비스의 상태를 확인. |
nssm edit servicename | 등록된 서비스를 수정. |
nssm remove servicename | 등록된 서비스를 삭제. |
'기타' 카테고리의 다른 글
Jenkins - Git 연동 (0) | 2022.04.07 |
---|---|
Jenkins - 설치 (0) | 2022.04.07 |
Baretail - 윈도우 실시간 로그 추적 (0) | 2021.11.08 |
vscode - java 세팅 (0) | 2021.11.03 |
02. AWS - 원격 접속 (0) | 2021.08.30 |
댓글