Tomcat server knowledge point and tomcat knowledge point

Source: Internet
Author: User

Tomcat server knowledge point and tomcat knowledge point

1. Deploy and start the tomcat server

(1)decompress apache-tomcat.zip to a non-Chinese directory;

(2) configure an environment variable java_home (pointing to the jdk installation root directory) or jre_home;

(3) double-click startup. bat in the bin directory under the tomcat directory to start the server;

(4) Enter localhost: 8080 in the browser to check whether tomcat is correctly installed;

(5) If a tomcat application is started and another tomcat application is started, an exception is thrown because the same port is occupied;

2. tomcat is an open-source Servlet Container

3. You can modify the tomcat server port number by modifying the configuration in the server. xml file. Change the port value 8080 to another one, such as 8989;

4. To enable tomcat in any directory: Put the bin directory in the tomcat directory in the path of the computer's environment variable (remember to add a semicolon at the end)

Create a new catalina_home environment variable pointing to the tomcat root directory. In this way, you can enter startup in any directory to start the tomcat server and shutdown the tomcat server.

5. Read startup. bat and find that the catalina. bat file is used to start the tomcat server. The catalina has the following parameters:

Run: Start the server in the same window as catalina;

Start: start the server in a new window;

Shutdown: Shut down the server.

Note: This is only for tomcat in windows.

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.