Tomcat has two startup methods and common problem solving.

Tomcat startup method:

1. Startup.bat start

  • Operation: Find the tomcat installation directory, then find the bindirectory startup.bat, double-click to start.
  • Verification: After startup, enter the following address in the browser's address bar, if the Tomcat welcome page appears, the startup is successful.
    1. http://localhost:8080
    2. http://127.0.0.1:8080
    3. http://computer real ip:8080
  • If you close it bin, find it in the directory shutdown.bat, double click to close it. Or directly X off.

2. Command start

  • Enter the bin directory of the tomcat installation in cmd (or directly in the bin directory and enter cmd in the address bar), enter the command catalina run, press Enter, and the startup is successful.
  • The test start is the same as the verification method above.

3. Problem solving

If there is any 拒绝访问startup error, just grant read and write permissions to the Tomcat installation directory. The operation method is: 右击Tomcat安装目录—> 属性—> 安全, just add modification and write permissions under the current user.

Guess you like

Origin blog.csdn.net/qq_45796486/article/details/114398254