table of Contents
When Tomcat starts, console, and the console Chinese garbled solution IDEA
download
Official Website: Apache Tomcat® https://tomcat.apache.org/
- After entering the official web surface, pressing the red box marked select positions corresponding to download version
- Here I show
Tomcat 8
download process
- After entering the download page, find the latest version of the subdivision location (here select the current latest version 8.5.47)
- In the
Core
find archive file you download system corresponding branch- My side is a Windows 64 system, so I chose
64-bit Windows zip (pgp, sha512)
to download
Unpack and configure the environment variables
1. Unzip the file
- The Tomcat archive downloaded file decompression
- Note: Save the path as much as possible path is in English, in case we have to find out what the problem solution (it does not work Chinese path can)
2. Configure Environment Variables
Start Tomcat There are two main ways:
The first: direct start
by Tomcat directory under the\apache-tomcat-8.5.47\bin\start.bat
file, double-click to start the service
The second: configuration environment variable, global path through cmd start in
this step is mainly to allow the system to cmd console at an arbitrary path through the Tomcat startup file commandsstartup
to start on the server
- As illustrated open window environment variables
- New System Variable
CATALINA_HOME
(this name can be customized), the second field enter the file path Tomcat just after decompression, and then click OK
- Find
Path
variable, double click to open, click the Add button- To just the new
CATALINA_HOME
appended to this format%CATALINA_HOME%\bin
- So far, all save complete configuration environment variable
test
Win + R to open the cmd console, enter the
startup
command to start the Tomcat service
In the browser input 127.0.0.1:8080, appeared full page indicates that the environment variable configuration is successful, repeat the steps above if not appear check
Close Service
There are two ways:
- The first: In the console press Ctrl + C
- The second: Enter cmd console
shutdown
command