Say, one day is chatting with the public about the world big event. By the rapid ringing call back, so-called Lake emergency, so remote a look. Actually need to use Tomcat (Tom's cat), so ...
The following is a procedure for downloading and configuring Tomcat.
①, using Tomcat prerequisites
Make sure your computer has the appropriate JDK installed and that the JDK is working properly. That is, the JDK environment variables are fully configured correctly. If you have questions, please refer to the Kay Academy JDK configuration.
Be clear about how many bits of your computer's operating system are, and how many bits of JDK you have installed.
②, visit tomcat website, download tomcat
Open a browser on your computer (any browser that can browse the Web), enter the URL
Http://tomcat.apache.org then enter and appear as shown in the page
650) this.width=650; "src=" Http://img.mp.itc.cn/upload/20160614/9afb39d2f4e34640a8d5e52dc7714ec2.jpg "style=" border:0px;margin:0px;padding:0px;font-size:0px; "/>
When you see this cat and feather, it means that the website you visit is correct.
Find the corresponding version of Tomcat under Download, and I'll choose the latest version of the Tomcat9 here (which is generally a stable 7 or 8).
When clicking on the corresponding version of Tomcat, you will see as shown in
650) this.width=650; "src=" Http://img.mp.itc.cn/upload/20160614/d4694d7a400749e88e031fb893c42fcb_th.jpg "style=" border:0px;margin:0px;padding:0px;font-size:0px; "/>
Because my JDK is 64 bit, so I choose 64-bit Windows zip download click it
, this is the prompt that is being downloaded. At this point, the download is here.
③, using, and configuring Tomcat
Find the downloaded Tomcat file
Unzip this file to the specified location, where I unzip to the D packing directory. So under D, I saw a folder like this.
Open the folder, copy the path
Copy this path
This PC-right button-Properties-Advanced system settings
650) this.width=650; "src=" Http://img.mp.itc.cn/upload/20160614/7546cecc65e94787bf3dde7af6a58f5f.jpg "style=" border:0px;margin:0px;padding:0px;font-size:0px; "/>
Configuring Environment Variables Catalina_home
Select New under System variables
650) this.width=650; "src=" Http://img.mp.itc.cn/upload/20160614/2ef7245a9b9340808cbd637261f96796.jpg "style=" border:0px;margin:0px;padding:0px;font-size:0px; "/>
The variable is named Catalina_home
The value of the variable, which is the path you just copied (never add a semicolon here)
then click OK.
④, run, and test
In the bin directory of the Tomcat directory, find a Startup.bat file
650) this.width=650; "src=" Http://img.mp.itc.cn/upload/20160614/b377a7ccb8024814b6b02650d71d84e2_th.jpg "style=" border:0px;margin:0px;padding:0px;font-size:0px; "/>
Double-click to start the Tomcat server
650) this.width=650; "src=" Http://img.mp.itc.cn/upload/20160614/eca26fefbcaf49728ab7d05324e431be_th.jpg "style=" border:0px;margin:0px;padding:0px;font-size:0px; "/>
When you see this time, the server starts to finish.
Open Browser, enter http://localhost:8080 carriage return
650) this.width=650; "src=" Http://img.mp.itc.cn/upload/20160614/6eeae8c3af0742f5bc243760877d9817_th.jpg "style=" border:0px;margin:0px;padding:0px;font-size:0px; "/>
See this page to indicate that the Tomcat configuration was successful.
Problem handling: Tomcat flashed past
1, check the JDK three environment variable configuration is correct, especially the Java_home variable value does not require a semicolon, the configuration value of JDK classpath is changed directly to a point number and a semicolon. others to delete.
2. Check Tomcat version and JDK version are 64-bit or 32-bit (depending on your computer system)
This article from the "11247808" blog, reproduced please contact the author!
Tomcat from download to use