Tomcat server installation, configuration, testing (win7_64bit)
Directory
1. Overview
2. Tools used in this article
3.Tomcat Server Installation configuration
4.Tomcat server simple test
5. Precautions
1. Overview
Tomcat is commonly used as a running container for Servlets, which is widely available in javaweb development, and of course, Tomcat can serve HTML pages as well.
2. Tools used in this article
Tomcat installation package: network disk download (v8.0.35)
If you need another version, please check the website ...
3.Tomcat Server Installation configuration
3.1 Getting the installation package
The 8.0.35 version of the installation package is available on the network tray above, if you need another version, please find it on the official website:
The reason for choosing Tomcat8 here is that some of the IDE's own Ides do not support the latest Tomcat9.
3.2 Installing the server
Before installing, it is recommended that you prepare a separate directory for Tomcat:
To start the installation:
3.3 Configuration
The common configuration is the HTTP port modifications to the listener:
4.Tomcat Server Simple test
4.1 Starting and shutting down the server
4.2 In the server startup state, access its home page:
4.3 Note that there are also index files in its examples directory, accessed in the following ways:
4.4 Similarly, access to the home page file under the JSP directory is as follows:
In fact, WebApps is the application directory for Tomcat, and some sample programs are installed under example.
5. Precautions
5.1 When you run the Javaweb program in the IDE, turn off the Tomcat service, because the General IDE will start automatically, or you will be prompted for port conflicts.
5.2 Note Ensure the integrity of the JDK environment, otherwise use Tomcat error.
Back to Catalog
Tomcat server installation, configuration, testing