Although many people know that the bin directory in the Tomcat directory structure has two batch processing files: startup and shutdown. With these two files, we can start and stop the Tomcat server. However, sometimes we find that when you double-click the startup. bat batch processing command, a black screen suddenly flash, and then it is closed, resulting in a failure to start the server.
The reason for the situation described above is that the configuration in the tomcat configuration file is faulty. However, as we started earlier, we cannot see the specific error and cause. In this case, you can use another method to start Tomcat to clearly display the error information for future viewing.
Its execution file: another batch processing file (Catalina. BAT) under the bin directory ). The specific method is to run cd in the bin directory, type the command: Catalina debug, and then type run. That is to say, start the server in the form of debugging, so that as long as there is an error message next time, the window will not be closed, we can also clearly see the error information, so as to find the error source.