Home > Java > javaTutorial > body text

Tomcat setting boot instance tutorial

WBOY
Release: 2017-06-30 16:18:21
Original
1955 people have browsed it


The green version of tomcat can start normally after configuring the Java environment and directly running the startup.bat under the bin. However, in many cases, customers
need tomcat to start automatically after booting. The following is a brief introduction on how to start automatically when booting under Windows.

First of all, before setting tomcat to start automatically at boot, you need to configure the Java environment. Configuring the Java environment will not be described in details.

Then, create a new variable: CATALINA_HOME=your TOMCAT directory

Finally, add at the end of the PATH variable: ;%CATALINA_HOME%\bin

The above environment configuration is completed You need to install this service in the future:

1. Run CMD and run service.bat install

in the DOS window 2. After installation, run services.msc to find the Apache Tomcat service and modify its running level Just

Note: If the command cannot be found when running service.bat install, it may be that the system environment configuration is incorrect, or the tomcat version is wrong. When downloading, you need to pay attention to 32-bit and 64-bit

If you need to delete it, you need to run CMD and run service.bat in the DOS window. Remove and press Enter
The simplest way is to put the startup.bat in the bin directory under tomcat into the registry of automatic startup items. In this way, you can easily start tomcat, but there is a problem that the tomcat startup window will be displayed

The above is the detailed content of Tomcat setting boot instance tutorial. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!