JavaJSP Learning Series (Tomcat Installation)

zhaozj2021-02-16  50

First, foreword for beginners, to perform JSP and servlet, Tomcat is a very good choice,. Tomcat is the product of Apache organized, Sun's support is also quite good. Second, download, installation download address is the official site of Java: jakarta.apache.org, more than domestic. From this address to download: http://jakarta.apache.org/builds/tomcat/release/, I downloaded the Tomcat32B4 version. Download, unzip it to a directory, I use F: / Tomcat32B4 as an example here. Third, configure the "My Computer" (right-click) Advanced environment variable on "System Variable" ---> New "Enter: java_home, the variable value is entered in the variable name: f: / jdk13 then determine; "System Variable" ---> New "Enter: Tomcat_Home, the variable value is entered in the variable name: f: / tomcat32b4 and then determined; ok, configured, after restarting the computer, environment variables can be effective. Note that other settings for Tomcat, if there is no need, it is not changed, I will talk about the simplest method, if you are not sure about your changes, or it is recommended not to change. Fourth, test (1) Start Tomcat: There is one: startup.bat in f: / tomcat32b4 / bIN, running it, there will be a DOS window. (2) Browsing In the browser: http: // localhost: 8080 / See what the effect (Tomcat default port is 8080, under the premise of conflict, you can change), can you see a Cute kitten (in fact, I personally think that no matter from color or like, more pictures) (3) Running in this page with JSP Examples and Servlet Examples, ok, test it yourself. (4) Exit Tomcat There is a: shutdown.bat in F: / tomcat32b4 / bin, run it, turn off the DOS window (if you stick to the DOS window, but, since there is this shutdown.bat, there should be Its reasons thereof).

转载请注明原文地址:https://www.9cbs.com/read-19796.html

New Post(0)