1 Getting the Tomcat installation package http://tomcat.apache.org/
The tar.gz file is the installation version of the Linux system
EXE file is the installation version under Windows system
ZIP file is a compressed version under Windows system
2 with Apache-tomcat-8.0.37-windows-x64.zip compressed version installation, decompression can
3 Configuration
3.1 Set the environment variable, add the Java_home variable to the environment variable, point to the Java JDK directory
3.2 Directly modify the Tomcat configuration parameters without adding java_home environment variables
Open the configuration file Catalina.bat under directory D:\Program Files\apache-tomcat-8.0.37\bin, add java_home and Jre_home variables and corresponding values after the first comment
4 starting Tomcat
Double-clicking the Open Bin (D:\Program files\apache-tomcat-8.0.37\bin) directory startup.bat,tomcat without any errors is initiated successfully.
5 Browser Input http://localhost:8080
Enter the URL to enter the Tomcat home page
6 Tomcat does not start correctly cause
6.1 Java_home configuration is not correct, note the Java_home JDK brutishness not have a space at the end, do not have a semicolon.
6.2 8080 Port number is occupied by another process
① closing a process that occupies port 8080
Netstat-ano viewing processes and their corresponding ports
After you get the PID, go to the Task Manager and force it off.
② changing the tomcat port number
Modify the node in the Conf/server.xml file to set the port number
<connector port= "8080" protocol= "http/1.1"
connectiontimeout= "20000"
redirectport= "8443"/>
6.3 can start normally, but will navigate to another page
Modify the browser's add-ons to disable the default navigation
6.4 When you access Tomcat, make sure that the Tomcat server boots up and that the JDK must be installed correctly before you install Tomcat.
Installation and considerations for the Tomcat Windows system