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