Tomcat is the basis of JavaWeb development, and all of our JavaWeb projects are basically released to run in Tomcat.
1. Download Tomcat;
1. Open Tomcat's official website, select the version you want to
download 2. Find the corresponding download package, and download;
3. Use the decompression tool to unzip the tomcat.zip
** Note: ** Do not have the Chinese
installation completed in the path ! ! !
Catalog description:
Click startup.bat in the bin file; start
successful sign:
enter local host: 8080 locally; appear
Solutions to common problems:
1. Click startup.bat in the bin file, and it flashes past.
Solution: Java environment is not installed properly
2. Enter localhost:8080 on the machine, and 404 appears;
Solution: Because port 8080 is occupied: ① occupied by other applications ② shut down tomcat/idea illegally. 404 may appear;
need to change the port number:
click on the conf/server.xml file and find the port modification:
3. Solve the problem of opening tomcat with garbled characters:
click on conf/logging.properties
because tomcat uses utf-8 and starts the command window used by tomcat It is GB2312, because of the encoding problem, it causes the garbled problem.