Tomcat official website Download is divided into the installation version and decompression version, if you do not want to configure the appropriate system environment variables can choose the installation version, but the installation version can not be intuitive to see the running interface, so personal love decompression version.
One, the installation version of Tomcat
Installation of the Tomcat installation process can be installed according to the wizard, you need to modify the installation path and port number. The installation version has a few need to note that this is the two places, the path generally does not have any problem, but if your installation path contains spaces (D:/program files/tomcat), you will be unable to access service 404, from the print log can see the path garbled. The best workaround is to replace the installation path, but you can also resolve the file path problem from the program by replacing the space with an empty string.
Configuring Tomcat encoding is typically used with Utf-8, where the encoding changes in the Tomcat Conf directory server.xml file encoding is changed to Utf-8, and the linked encoding set is configured at the linked configuration Usebodyencodingforuri= "true "or uriencoding=" UTF-8 "
<connector port= "8998" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8 443 "uriencoding=" UTF-8 "/>
Ii. decompression version of Tomcat
The decompression version of Tomcat does not appear above the path problem, but the decompression version of Tomcat needs to have the special support of the JDK environment variables, the actual is not special, decompression version of Tomcat will be running startup.bat when the black box flashes the problem, we can use the command to find the problem
Open the command line and go to the Tomcat bin directory, D:\>CD D:\Program files\tomcat\apache-tomcat-6.0.20\bind:\program files\tomcat\ Apache-tomcat-6.0.20\bin\>catalina.bat Run
The corresponding error message appears here, and the general situation is that the JDK java_home JRE problem is not set, the main problem is that the JDK system environment variable setting is incomplete.
Decompression version of the problem with the installation version
Tomcat installation Configuration