Tomcat 设置

时间:2024-04-16 17:37:11

bin/catalina.bat--增加内存

set JAVA_OPTS=...后面加上

set JAVA_OPTS=-Xmx1024M -Xms512M -XX:MaxPermSize=256m

conf/tomcat-users.xml --增加用户

<role rolename="manager"/>

<user username="admin" password="admin" roles="manager"/>

conf/server.xml--增加编码

<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="9000" protocol="HTTP/1.1" redirectPort="8443"/>