1、集成jre,将jre文件夹拷贝到tomcat根目录下
修改配置\bin下的setclasspath.bat文件,在最前面增加:
set "JRE_HOME=%cd%\..\jre7"
修改conf下的server.xml,在访问端口的配置中增加:
acceptCount="100" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="1000" minSpareThreads="25"
2、将\webapps下的除ROOT外的所有文件夹备份,删除,防止网络安全漏洞
3、tomcat启动报:
Tomcat:A cookie header was received[xxxxxx] that contained an invalid cookie. That cookie will be ignored.
原因:
*从Tomcat 8,Cookie的解析已经符合RFC 6265。
*由于RFC 6265不再接受以前允许的逗号分隔符(例如RFC 2109)
"Cookie:KEY 1 = VAL 1,KEY 2 = VAL 2"的格式被视为非法
参考:
http://www.mamicode.com/info-detail-2018600.html
http://www.blogjava.net/wangxinsh55/archive/2015/04/09/424255.html
4、tomcat警告信息:
警告 [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
解决办法:
将server.xml里的debug=”0”删除
警告 [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [171] milliseconds.
解决办法:
参考:http://blog.csdn.net/chszs/article/details/49494701