Tomcat installation Configuration

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.