Tomcat installation for JSP Learning Series

Source: Internet
Author: User

  I. Preface
Tomcat is a good choice for beginners to execute JSP and servlet ,. Tomcat is a product of the Apache organization, and Sun's support for it is also quite good.
  
  Ii. Download and install
Java official site: jakarta.apache.org, which is also widely used in China.
  
You can download this link: http://jakarta.apache.org/builds/atat/release/. what I download is tomcat32b4.
  
After the download, decompress the package to a directory. Here I use F: \ tomcat32b4 as an example.
  
  Iii. Configuration
Right-click my computer on the desktop)
  
Advanced
  
Environment Variable
  
Go to "system variables" ---> "new"
  
Enter java_home in the variable name and F: \ jdk13 in the variable value, and then click OK;
  
Go to "system variables" ---> "new"
  
Enter tomcat_home in the variable name, F: \ tomcat32b4 in the variable value, and then confirm;
  
Okay. After the configuration is complete, the environment variable will be valid only after the computer is restarted.
  
Note that other Tomcat settings can be left unchanged if not necessary. Here I will talk about the simplest and most feasible method. If you are not sure about your changes, we recommend that you do not change it.
  
  Iv. Test
(1) start Tomcat:
  
Run startup. bat under F: \ tomcat32b4 \ bin and a DOS window appears.
  
(2) browsing
  
Enter http: // localhost: 8080/in the browser to check the effect. (the default Tomcat port is 8080. You can change it without conflict ), is it possible to see a cute kitten (in fact, I personally think, whether in color or look, it is more like a tiger)
  
(3) Run
  
On this page, jsp examples and Servlet examples are available. Now, test and run them on your own.
  
(4) Exit Tomcat
  
There is a shutdown under F: \ tomcat32b4 \ bin. bat, run it, it will close the DOS window (if you insist on closing the DOS window directly, but since there is this shutdown. bat, there should be reasons for its existence ).

Recommended for beginners a programming technology learning site, 96 stack Software Programming Network, http://www.96dz.com, which has c ++ video tutorial, C # video tutorial, Java video tutorial download, c \ c ++, Java, and C #. net and other programming technology abstracts, including the current mainstream Linux programming and web programming learning materials video tutorial download.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.