• 周六. 10 月 5th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Windows copies a Tomcat to start the same project as the test environment (which can run normally)

King Wang

1 月 3, 2022

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

 

 

发表回复