Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Zwei Tomcats parallel

Empfohlene Antworten

Veröffentlicht

Hallo zusammen.

Ich versuche gerade zwei Tomcat Installationen parallel auf einem Windows Server zu installieren.

Der erste läuft schon länger (über einen WinService), nun soll ein zweiter dazu kommen.

Die Ports sind geändert.

Meine Frage bezieht sich aber auf die Umgebungsvariablen.

Die $CATALINA_HOME Variable ist nicht global gesetzt. Diese wird also scheinbar beim Start vom Tomcat "lokal" erzeugt.

Muss ich bei der Inbetriebnahme vom zweiten Tomcat irgendetwas umstellen, damit dort nicht auch eine $CATALINA_HOME erzeugt wird.

Ich weiß nicht, ob die beiden sich überschreiben oder beeinflussen?!

In der RUNNING.txt vom Tomcat steht ein Abschnitt über parallele Tomcats, aber so wie ich das verstehe, geht es um User Sharing, so dass der erste Tomcat nur kopiert wird, damit der zweite User unbemerkt auf eine andere Installation geht, welche inhaltlich aber die gleiche ist.

Muss ich das auch so anwenden, wenn die webapps des zweite Tomcats inhaltlich nichts mit dem ersten zu tun haben?

In many circumstances, it is desirable to have a single copy of a Tomcat binary distribution shared among multiple users on the same server. To make this possible, you can pass a "-Dcatalina.base=$CATALINA_BASE" argument when executing the startup command (see (2)). In this

"-Dcatalina.base=$CATALINA_BASE" argument, replace $CATALINA_BASE with the directory that contains the files for your 'personal' Tomcat instance.

When you use this "-Dcatalina.base=$CATALINA_BASE" argument, Tomcat will

calculate all relative references for files in the following directories based

on the value of $CATALINA_BASE instead of $CATALINA_HOME:

Danke!!!

Hargan

Wenn Du die Ports sauber konfigurierst, oder jeden auf eine andere Adresse lauschen lässt, geht das mit zwei Instanzen ohne Probleme. die Umgebungsvariablen sind ja getrennt voneinander, weil sie erst im Batchfile gesetzt werden.

Peter

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.