Javaweb Study Summary (iii)-TOMCAT Server installation and basic use

Source: Internet
Author: User
Tags tomcat server

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.