최대 1 분 소요

winsw Download

image

  • 실행파일과 이름이 동일한 xml파일 생성

      MyApp.xml
    
      <service>
          <id>MyAppservice</id>
          <name>MyAppservice</name>
          <description>This runs Spring Boot as a Service.</description>
          <executable>java</executable>
          <arguments>-jar C:/my/myApp.jar</arguments>
          <logmode>rotate</logmode>
      </service>
    
  • 서비스 등록
    • 관리자 권한으로 cmd를 실행 후 MyApp.exe와 MyApp.xml이 있는 폴더 경로로 이동 후 install image
  • 서비스 확인
    • 작업관리자 -> 서비스에 설정한 name값으로 등록되어있는지 확인. image

카테고리:

업데이트:

댓글남기기