Tomcat Boot Mode

Source: Internet
Author: User
Development environment: Tomcat version apache-tomcat-7.0.59-windows-x86

At the moment I know that there are two ways to start up, both in the command-line format and through the Startup.bat batch file.

1. Under command-line format, enter the installation directory of the Tomcat server to the bin directory and start Startup.bat. or use%tomcat_home%\bin\startup.bat directly.

This startup method is cumbersome to enter the Tomcat installation directory each time it is started.

2. Start Startup.bat by configuring the PATH environment variable (System environment variable takes effect requires restart command line format)

Create a new system environment variable named Catalina, with the value of the Tomcat installation directory, where the directory is the top level directory of the Bin folder

Add%catalina%\bin to the PATH environment variable

Restart the command line and enter Startup.bat directly to start the Tomcat server successfully.

If the variable value or variable name of the Catalina system environment variable is set incorrectly, the following error occurs:

The CATALINA_HOME environment variable is not defined correctly
This environment variable are needed to run

This is because Startup.bat initiated in this way will read the corresponding system environment variables.

Workaround: Modify the variable name or variable value correctly.

Tomcat Boot Mode

Related Article

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.