1. Replication of formal environment tomcat Folder , And rename :apache-tomcat-7.0.72-test
2. modify config/server.xml, There are three changes here :
①<Server port=”8015″ shutdown=”SHUTDOWN”> modify port
②<Connector port=”81″ protocol=”HTTP/1.1″
connectionTimeout=”20000″
redirectPort=”8443″ URIEncoding=”utf-8″/> modify port
③<Connector port=”8019″ protocol=”AJP/1.3″ redirectPort=”8443″ /> modify port
3. modify bin/catalina.bat and bin/startup.bat
①startup.bat Inside , stay echo Before joining
SET CATALINA_HOME=D:\apache-tomcat-7.0.72-test
SET CATALINA_BASE=D:\apache-tomcat-7.0.72-test
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_80
@echo off
②catalina.bat Add after comment before beginning of text
rem —————————————————————————
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_80
4. restart tomcat, It can run normally