Tomcat download and configuration, Tomcat download configuration
Directory structure:
Contents structure [-] Download Tomcat
You can download Tomcat from the apache official website. I downloaded tomcat 7.0.55 [32-bit windows]. Note that the minimum JDK version required for tomcat 8.5 is 1.7. For details, see the JDK installation configuration.
Configure Tomcat
Create the following three values in the system environment variables:
TOMCAT_HOME = D: \ Program Files \ app \ apache-tomcat-7.0.55
CATALINA_HOME = D: \ Program Files \ app \ apache-tomcat-7.0.55
CATALINA_BASE = D: \ Program Files \ app \ apache-tomcat-7.0.55
The value is the location where the reader installs Tomcat.
Then add the following in classPATH:
% TOMCAT_HOME % \ lib \ servlet-api.jar;
Add the following in path:
% CATALINA_HOME % \ bin;
If the reader has installed other servers and the like, basically every server is installed with 8080 by default. We recommend that you change the port number, open the server. xml file in the conf directory, and find
<Connector port = "8080" protocol = "HTTP/1.1" connectionTimeout = "20000" redirectPort = "8443"/>
Replace the port number with a number. For example, you can change port to "8081 ".
Run Tomcat
In the Tomcat installation directory, find startup. bat in the bin directory, open it, and enter http: // localhost: 8081/in the browser. If the following interface appears, the configuration is successful.
References
Http://jingyan.baidu.com/article/86f4a73e5be03237d65269ef.html
Http://mirrors.cnnic.cn/apache/tomcat/tomcat-8/v8.5.9/README.html
Http://tomcat.apache.org/download-80.cgi
This article is an original blog article. If you need to reprint it, please indicate the source.