首页 > 代码库 > 开发环境-tomcat

开发环境-tomcat

1.解压安装包


2.添加环境变量
CATALINA_BASE CATALINA_HOME -> 修改 Path环境变量,添加 %CATALINA_HOME%\lib;%CATALINA_HOME%\bin;


3.tomcat服务安装
service.bat install/remove [服务名]


4.tomcat优化配置
-XX:PermSize=256M
-XX:MaxPermSize=256M
-XX:ReservedCodeCacheSize=128M
-Duser.timezone=GMT+08


5.tomcat Manager
tomcat-users.xml
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="root" password="------" roles="manager-gui,manager-script,manager-jmx,manager-status"/>

开发环境-tomcat