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에 취.하.개.]
'Infra Structure > WAS' 카테고리의 다른 글
[crontab]Tomcat 자동 재시작 (0) | 2021.08.17 |
---|---|
[Tomcat] setenv.sh 활용하기 (0) | 2021.08.10 |
[Tomcat] heap dump(힙 덤프) 수동 생성 (0) | 2021.08.10 |
[Tomcat] JNDI 설정 (0) | 2020.06.04 |
[Tomcat] 메모리 설정 (0) | 2020.04.19 |