정보

Windosws에서 서비스는 사용자 관리자(service.msc)에 의해 실행

리눅스의 경우 명령어 뒤에 &를 붙여서 백그라운드 실행가능

Windows의 경우 sc.exe를 실행하여 생성 가능

 

등록 방법

telegraf.exe을 등록하는 예
(관리자권한으로 cmd 실행)

sc create telegraf_agnet binpath= "C:\Program Files\Telegraf\telegraf.exe" displayname= "telegraf_Agent" start= auto

(참고) 서비스 삭제
sc delete telegraf_agent

 

참고

https://docs.microsoft.com/ko-KR/windows-server/administration/windows-commands/sc-create

https://gentian.tistory.com/1


to Top