Home  >  Article  >  Java  >  Tomcat setting boot instance tutorial

Tomcat setting boot instance tutorial

WBOY
WBOYOriginal
2017-06-30 16:18:212002browse


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!

Statement:
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
Previous article:First time bloggingNext article:First time blogging