One. Download and install the Tomcat server
1) to Apache official website www.apache.org
2) Download the corresponding version, the recommended download compression version of the study. RAR (unzip to the specified folder after download)
3) Run and close Tomcat under Windows
---launch software to find Tomcat/bin/startup.bat, double click to start
---Test open Browser, enter http://localhost:8080 to enter a cat's page, explain the software start OK
---Close software to find Tomcat/bin/shutdown.bat
Tomcat Use FAQ *********************
1) The cause of the problem: Tomcat is developed in the JAVA language, the Tomcat software starts in the system to find java_home this variable, start the JVM solution configuration java_home environment variable variable name java_home value D:\Java\ Jdk1.8.0_90
2) port occupancy error Reason: The port required for Tomcat boot is being used by other software workaround one: Locate the program that corresponds to the port to close IT Solution two: to Tomcat/conf/server.xml
3) Catalina environment variable problem reason:
After the Tomcat software is started, in addition to looking for java_home, you will also find a variable called catalina_home, the role of this variable is to set the root directory tomcat. WORKAROUND: We recommend that you do not set the Catalina_home variable. Check if there is, clear off!!!
|-bin: The command to store Tomcat. Catalina.bat command: Startup.bat, catalina.bat start Shutdown.bat-> Catalina.bat stop
|-conf: storing Tomcat configuration information. Where the Server.xml file is the core configuration file.
|-lib: A jar package that supports the operation of the Tomcat software. There are also technical support packages, such as servlet,jsp
|-logs: Log information for the running process
|-temp: Temp Directory
|-webapps: Shared Resource directory. Web App Catalog. (Note that it cannot be shared with a separate file)
The running directory of the |-work:tomcat. The temporary files generated by the JSP runtime are stored here
Javaweb Study Summary (iii)-TOMCAT Server installation and basic use