Configuring the boot from Tomcat service under Windows

Source: Internet
Author: User

A management system has been made for the internal organization, and the deployment project requires the server to start the management system self-booting. The operation flow is given directly.

I. Configuring Environment variables

Since Tomcat starts dependent on the JDK, the JDK and tomcat two environment variables need to be configured, such as if the system has a JDK installed, there is no need to re-configure the JDK environment variable here.

1 JDK environment variable configuration

Create a new variable java_home under the user variable in the environment variable, where the value of the variable is the JDK root, and the path variable edit is found in the system variable, if it exists before the path variable, with a half-width semicolon (;) at the end, plus %java_home %\bin, note that the preceding semicolon must not be saved.

2 Tomcat environment variable configuration

Create a new variable catalina_home under the user variable in the environment variable, where the value of the variable is the tomcat root that you want to boot from, and the path variable in the system variable, and the same way you add a semi- Colon after the end of the %catalina_nome%\ Bin, click OK to save.

Ii. adding Tomcat system services

CMD enters the command-line window, enters the Tomcat bin directory, executes the service.bat install command to complete the service Add.

Third, set up the Tomcat service boot from boot

Click Start--->> Control Panel--->> Administrative Tools--->> services, locate the added Tomcat service, set the startup type to Automatic, save exit.

By the end of this Tomcat service configuration, restarting the computer can be tested and accessed if the project is deployed under the Tomcat directory where the self-service is configured.

According to the degree Niang configuration is not easy to know simple, make a note.

Configuring the boot from Tomcat service under 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.