Table of contents
2. Modify the Tomcat access port number
3. Solve the problem of Chinese garbled characters after Tomcat starts
Tomcat
- Tomcat is an open source and free java web server, a project of the Apache Software Foundation;
- Before installing Tomcat, install Java JDK
1. Download Tomcat
Download address: https://tomcat.apache.org/download-10.cgi
The version used in this article: 10.0.6
Downloaded file: apache-tomcat-10.0.6-windows-x64.zip
Unzip the downloaded file to the directory: D:\Tool\apache-tomcat-10.0.6
2. Modify the Tomcat access port number
Modify the file D:\Tool\apache-tomcat-10.0.6\conf\server.xml
Change the access port number to 8089
<Connector port="8089" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
3. Solve the problem of Chinese garbled characters after Tomcat starts
Modify the file D:\Tool\apache-tomcat-10.0.6\conf\logging.properties
UTF-8 modified to GBK
java.util.logging.ConsoleHandler.encoding = GBK
4. Start Tomcat
Click D:\Tool\apache-tomcat-10.0.6\bin\startup.bat to start Tomcat;
After the startup is successful, the browser access address: http://127.0.0.1:8089/
If the startup is successful, the following information will be displayed: