Tomcat running in the background

tags: Tomcat

Foreword

Directly in the Window SystemTomcat/bin Directorystartup.bat Files can start the program directly, but also bring up a command line window, log printing program is running, and the need to stay open, not closed, so it is best to set up Tomcat to run in the background.

Tomcat will be registered as a service

Tomcat support will start to switch registration service, which would:

  1. Open a command line window, enterTomcat/bin Directory where
  2. Runservice.bat install Command, when the output of the following information on the implementation success:

There may be prompted toCATALINA_HOME Wrong path, we need to add a new variable in the system environment variables:CATALINA_HOME=D:\tomcat\apache-tomcat-9.0.30\apache-tomcat-9.0.30\binThen inPath Plus variable%CATALINA_HOME% To

  1. win + r open operation command window, enterservices.msc Enter to open the Services window:

    to find us just registered Tomcat service, directly right click and select Start can start Tomcat, you can also right-click - Properties - Startup type, modified to start automatically, so the post.

If you have any problems you can leave a message, we can discuss -

Intelligent Recommendation

Springboot projects are running in Tomcat in Tomcat

POM file The startup class after the inheritance is as follows...

Nodejs background running daemon

Node command: nohup node your_app.js &   Forever: Let the nodejs application execute in the background          ...

app running in background

The app needs to meet the following conditions to run in the background, otherwise it can only be in the background for 10~15 minutes. your app must be one of these types: Apps that play audible conte...

Centos running redis in the background

Centos running redis in the background I installed Redis according to the tutorial and used the two methods on the Internet to put redis in the background. It started up, but it failed. Here we record...

Batch file running in the background

The .bat batch file runs in the background and requires a piece of code at the beginning of the code....

More Recommendation

Linux background running command

& placed after the command means to set this process as a background process By default, the process is the foreground process. At this time, the process (the execution of the command is equivalen...

Redis service running in the background

Article directory Enter the redis installation directory View directory structure Enter the src directory, the normal startup effect Edit redis.conf under the redis service directory Enter the src dir...

MongoDB running in the background

Article directory Command mode (recommended) Command line and configuration file mode Command Line: Configuration file: Command mode (recommended) If you want to run in the background, just add the --...

iOS: running in the background

When we have a demand, we need to run the application for a long time in the background. At this time, we need to use the method. The code is for recording and sharing only. For details, please refer ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top