Tomcat under Configuration Java environment

Source: Internet
Author: User

Tomcat configures the Java War package:

Note: To deploy the war package, the purpose of deploying the war is to access the JSP page and manipulate the JSP, so it is clear which directory the JSP pages in the war package are placed in.

1. First put the war package in Tomcat's WebApps directory, put it in this directory and restart Tomcat to let the program automatically unzip the war package

2.war Automatic decompression is done in the page can be accessed, the server IP address plus Tomcat port also has to access the page JSP address, such as:

3. The mailbox verification cannot be accessed during the access registration process the success has been in circles. At this time I modified the data in the IP address and the maximum number of connections, before the default IP address is localhost but sometimes the database permissions problems caused by the inability to access all modified to the IP address, password before the default password root, so here need to change the password, I modified it to 123456,maxactive the maximum number of connections before it was too small to release it. I changed it to 500.

After modifying Wq save exit; Note: Maxactive also is that we change the maximum connection time will change to 0, because said 0 is no limit, but write 0 may lead to unlimited growth, the last database reached the maximum number of connections, and then the end of the So it's best to write specific data.

4. Then restart tomcat./shutdown.sh, and then print the log./startup.sh & Tali-f. /logs/catalina.out, such as print out the log is part of the normal, if the display is true is a failure

Another situation is that you start Tomcat when you are prompted to use the port number, this time we need to modify the Conf directory server.xml file modification port.

5. Because there is a verification code in the registration, so to modify the JSP file in the code to modify the verification code, the verification that part of the deletion. , leaving only the red box, and then the rest are deleted, note in the code before deleting the best to see the code logic, as well as to pre-backup good or delete the wrong on the trouble, I just always make such a mistake

Tomcat under Configuration Java environment

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.