[Tomcat]war 배포
http://[IP주소]/manager
$ sudo vi /usr/share/tomcat8/conf/tomcat-users.xml
<tomcat-users>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="admin" password="admin" roles="admin,manager,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" />
</tomcat-users>
$ sudo vi /usr/share/tomcat8/webapps/manager/META-INF/context.xml
<Context antiResourceLocking="false" privileged="true" >
<!--
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" /> -->
<Manager sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap"/>
</Context>
<Valve> 부분을 주석 처리
[배포시 에러났을 경우]
$ sudo vi /usr/share/tomcat8/webapps/manager/WEB-INF/web.xml
<multipart-config>
<!-- 50MB max -->
<!--
<max-file-size>52428800</max-file-size>
<max-request-size>52428800</max-request-size>
-->
<!-- 500MB max -->
<max-file-size>524288000</max-file-size>
<max-request-size>524288000</max-request-size>
<file-size-threshold>0</file-size-threshold>
</multipart-config>
- 50MB 용량 제한인 것을 500MB로 늘림.
출처: https://hongku.tistory.com/196 [IT에 취.하.개.]