JavaWeb entry - Tomcat server installed in the Windows environment

JavaWeb entry - Tomcat server installed in the Windows environment

Abstract: In this paper, learn how to download and install Tomcat server in a Windows environment.

download

For installation package

Quguan recommend downloading Tomcat:

https://tomcat.apache.org/

This download is the latest version 9.0.29, you can also download the version history at the link below where:

https://archive.apache.org/dist/tomcat/

If you do not know what version to download, you can find the recommended version based on the version of other technologies:

Installed version of the package

Each version offers different packages depending on the installation environment, you can download the actual situation:

apache-tomcat-x.zip:Windows foundation release package, APR native libraries under the relevant batch script does not contain Windows services and Windows.

apache-tomcat-x.tar.gz: zip bag with the same, but different compression formats, primarily for Linux system.

apache-tomcat-x.exe: Windows executable installation package, basically the same functions and zip for Windows shortcut keys, and system services in the form of start.

apache-tomcat-x-windows-x86.zip:32 bit Windows release package, comprising APR native libraries for Windows 32-bit system used in conjunction with JVM adapter 32 and the 64-bit operating system.

apache-tomcat-x-windows-x64.zip:64 bit Windows release package, APR native libraries contain 32-bit Windows systems with the use of the JVM, fit only 64-bit operating system.

installation

The downloaded  apache-tomcat-9.0.29.zip  unzip the file to the installation directory.

Check whether the system is configured Java environment variable, because the execution, parsing JSP pages Servlet Tomcat server services are dependent on the Java runtime environment, you need to configure the environment variables to run the server.

After confirming the Java environment variable configuration, decompression into the Tomcat directory, enter the  bin  folder, perform  startup.bat  file. At this time, there will be a black command prompt window as:

1 27-Nov-2019 17: 00: 06.781 information [main] org.apache.catalina.startup.VersionLoggerListener.log Server server version:. The Apache Tomcat / 9.0.29
 2 27-Nov-2019 17: 00: 06.786 information [ main] org.apache.catalina.startup.VersionLoggerListener.log server construct: 16-Nov 2019 17:29:07 UTC
 . 3 27--Nov-2019. 17: 00: 06.787 information [main] org.apache.catalina.startup.VersionLoggerListener. log server version number (: 9.0.29.0
 4 27-Nov-2019 17: 00: 06.788 information [main] org.apache.catalina.startup.VersionLoggerListener.log the Name OS: Windows 10
 5 27-Nov-2019 17:00: 06.788 information [main] org.apache.catalina.startup.VersionLoggerListener.log OS version:. 10.0
 . 6 27--Nov-2019. 17: 00: 06.789Information [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: AMD64
 7 27-Nov-2019 17: 00: 06.789 information [main] org.apache.catalina.startup.VersionLoggerListener.log Java environment variables: .. .
 . 8 27--Nov-2019. 17: 00: 06.789 information [main] org.apache.catalina.startup.VersionLoggerListener.log JVM version: 1.8.0_91- B15
 . 9 27--Nov-2019. 17: 00: 06.790 information [main] org.apache.catalina.startup.VersionLoggerListener.log JVM vendors:. the Oracle Corporation
 10 27-Nov-2019 17: 00: 06.794 information [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: ...
 11 27-Nov-2019 17: 00 : 06.795 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         ...
12 27-Nov-2019 17:00:06.796 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=...
13 ...
14 27-Nov-2019 17:00:08.003 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in [891] milliseconds

Open your browser and enter in the address bar  http: // localhost: 8080  or  http://127.0.0.1:8080  , if you see the following pages proved successful start:

Command line window exists, then the server is running, if you turn off the command line, the equivalent of shutting down the server. 

Guess you like

Origin www.cnblogs.com/shamao/p/11955151.html