Tomcat is installed on Windows as well as to solve the garbage problem

Tomcat is installed on Windows as well as to solve the garbage problem

Download tomcat8

1. Go to the tomcat's official website

Official website

2. Select the windows version

Decompression

Sure you configured the jdk

jdk the configuration

Tomcat configured environment variables

My Computer -> right click -> Properties -> Advanced System Settings -> Environment Variables

1. Create a new system of two variables CATALINA_HOME, CATALINA_BASE

Corresponding path are:

CATALINA_HOME:F:\J2EE\apache-tomcat-8.5.46
CATALINA_BASE:F:\J2EE\apache-tomcat-8.5.46

Note: My path is for reference only, this is the path you unpack your tomcat path

2. Modify any original system variable Path variable

Finally, add the path attribute of this code, this is generic

%CATALINA_HOME%\bin;%CATALINA_HOME%\lib

Solve the garbage problem

Due to possible different character encoding, to do the following

1. Locate the file logging.properties

2. Use Notepad to open, probably about 47 places in line, I changed this line of code

java.util.logging.ConsoleHandler.encoding = GBK;

Start Service

1. Click startup.bat files in the bin directory under tomcat

2. Start Success

3. Enter the http in your browser: // localhost: 8080 /, see the following interface will be successful

Guess you like

Origin www.cnblogs.com/mengxiaoleng/p/11613693.html