Programming/Java(Spring)2019.06.07 16:26

$ sudo apt-get install tomcat9-admin

$ sudo vim /etc/tomcat9/tomcat-users.xml

  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-status"/>
  <user username="tomcat" password="password" roles="manager-gui,manager-script,manager-status"/>

 

war 디플로이 경로(tomcat manager 쓰면 상관없음)

/var/lib/tomcat9/webapps

 

 

+

2019.07.29

sudo vi /etc/tomcat9/tomcat-users.xml

sudo vi /usr/share/tomcat9-admin/manager/WEB-INF/web.xml

<multipart-config>
   <max-file-size>152428800</max-file-size>
   <max-request-size>152428800</max-request-size>
   <file-size-threshold>0</file-size-threshold>
</multipart-config>

sudo vim /usr/share/tomcat9-admin/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>

'Programming > Java(Spring)' 카테고리의 다른 글

java.lang.OutOfMemoryError: GC overhead limit exceeded  (0) 2019.07.06
mvn -P profile  (0) 2019.06.08
tomcat9 on ubuntu18.04  (0) 2019.06.07
tomcat 자동 war 배포 막기  (0) 2019.06.07
tomcat manager GUI  (0) 2019.06.07
WARNING: An illegal reflective access operation has occurred  (0) 2019.06.05
Posted by 구차니

댓글을 달아 주세요