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 will use F: omcat32b4 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 and F: omcat32b4 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:
In F: omcat32b4