How to use Apache Tomcat explained,
August 12, 2007 at 8:40 AM
OK what I want you to do is go to the folder where you keep tomcat. go into the tomcat folder, and you should see various folders such as bin and webapps... First step is saving the files... Go into webapps. The root file is something you can access as "http://localhost:8080/filename" Or you can make a new folder E.G. "tryit" and access a file in it with "http://localhost:8080/tryit/filename"... That is saving files. Now to start tomcat. First open a DOS window, in Windows, Start>Run><type in cmd and hit run> Now type in the following command where $CATALINA_HOME is where you saved tomcat. CATALINA_HOME is different in this case. $JDK is where you saved jdk here. Replace my variables. 1:cd $CATALINA_HOME/bin 2:set JRE_HOME="$JDK\jre" 3:set CATALINA_HOME="$CATALINA_HOME" 4:startup
To turn off, please keep your DOS window open until it is time to turn off or you will repeat every step except for #4. then type in this command:
5:shutdown
That should do it. Example:
C:\this\is\my\cmd\start\path>cd C:\tomcat\bin
C:\tomcat\bin>set CATALINA_HOME="C:\tomcat"
C:\tomcat\bin>set JRE_HOME="C:\jdk\jre"
C:\tomcat\bin>startup Using CATALINA_BASE: "C:\tomcat" Using CATALINA_HOME: "C:\tomcat" Using CATALINA_TMPDIR: "C:\tomcat\temp" Using JRE_HOME: "C:\jdk\jre" C:\tomcat\bin>shutdown Using CATALINA_BASE: "C:\tomcat" Using CATALINA_HOME: "C:\tomcat" Using CATALINA_TMPDIR: "C:\tomcat\temp" Using JRE_HOME: "C:\jdk\jre" C:\tomcat\bin>exit --DOS OFF AFTER exit COMMAND
View All Comments
| View Tutorial