Preloader image
DDD

리눅스

윈도우에서 수동 war 파일 생성 후 리눅스 서버에 Deployed 하기

작성자 관리자 (admin)
조회수 1,732
입력일 2022-02-20 09:16:51

1. cmd 실행
2. 윈도우에서 해당 프로젝트의 WebContent 로 이동
3. jar cvf 와르이름.war *
4. 아파치-톰캣 - http://127.0.0.1:8080/manager 실행
5. 배치할 WAR 파일 -> 파일선택 -> 배치
6. 애플리케이션들 목록에서 해당 WAR 파일 디렉토리 선택
7. 웹출력

P.S.
....... the request was rejected because its size (104522209) exceeds the configured maximum (52428800)]
위와 같은 에러가 출력된다면
tomcat/weapps/manager/WEB-INF/web.xml 의 파일크기 MAX 값을 변경 (기본 52,428,800)

    <multipart-config>
      <!-- 50MB max -->
      <max-file-size>9952428800</max-file-size>
      <max-request-size>9952428800</max-request-size>
      <file-size-threshold>0</file-size-threshold>
    </multipart-config>

 

^