1. Understanding the nature of path is to register an executable fileso we're going to put the directory where the Startup.bat is located in path.
2. At this point we try to use the startup command in CMD, the following information will appear---------traced to a source catalina_home3. So we want to configure the Catalina_home directory, in order to find out, We opened the startup.bat with a text editor because we didn't define catalina_home before, so the program would try to set Catalina_home as the current path, however, the current path is obviously not our Tomcat directory, so that means no bin\ Catalina.bat. In other words, we have to set the correct catalina_home, because startup is the last call to Catalina.bat, so we have to configure Catalina_home, in the Startup.bat file can know that the environment variable has bin \catalina.bat, so it points to the Tomcat installation root directory directly using the Catalina command we got these commands
First--start tomcat at any location