Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Tomcat9 installs the windows service

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

1. Preparatory work

1.1 download the tomcat package with service.bat at https://tomcat.apache.org

1.2 extract to a custom specified directory

1.3 go to the bin directory, find the service.bat file, open it and edit it

two。 Set the tomcat service name

Search for "set SERVICE_NAME=" to set the tomcat service name

Set SERVICE_NAME=Tomcat9_8080

3. Set the tomcat service display name

Search for "DisplayName" to modify the tomcat service display name

4. Add tomcat to windows service mode 1

Open cmd (run as an administrator if you do not have sufficient permissions) and go to the bin directory of tomcat, and execute the following command:

Service.bat install

Added to the service

Uninstall the windows service for tomcat

Service.bat remove

5. Add tomcat to windows service mode 2

Direct command add

/ / add the service service.bat install service name (customizable, not the same as in the configuration file) / / uninstall the service service.bat remove service name (customizable, not the same as in the configuration file)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report