Common Tomcat problems and Common commands
For a long time, you don't need to forget many tomcat commands, so you have to record them for reference. I also hope that I can start to develop a good habit of logging on to my blog.
1. view the java version number.
Go to the java installation directory and run the following command: java-version
If yes, It is 32 bits.
If yes, It is 64-bit.
2. Basic Tomcat commands:
Go to the Tomcat installation directory and run the command: startup. bat.
Go to the Tomcat installation directory and run the command shutdown. bat.
Go to the Tomcat installation directory and run the command: version
3. Deploy the Tomcat Project
After configuring Tomcat in eclipse, add the project to Tomcat and start Tomcat. Then open the browser and enter http: // localhost: 8080/project name/xxx in the address bar. jsp Press enter. If you see the JSP page in the project, your JDK and Tomcat have been set up successfully.
4. the following error occurs during Tomcat startup.
Cause: the java and Tomcat used are both 32-bit, while the laptop system is 64-bit.