From 71c47b56375e7ac3e93fe4749f9680c1267d37eb Mon Sep 17 00:00:00 2001 From: Kaimbacher Date: Wed, 21 Jul 2021 09:42:23 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EInstallation=20System=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Installation-System.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Installation-System.md b/Installation-System.md index b6f7c3f..63ed333 100644 --- a/Installation-System.md +++ b/Installation-System.md @@ -52,7 +52,7 @@ sudo chown -R tomcat webapps/ work/ temp/ logs/ ## Create tomcat service -Now, create a new file for Tomcat inside /etc/systemd/system directory: +Now, create a new file for Tomcat inside /etc/systemd/system directory: \ `sudo nano /etc/systemd/system/tomcat.service` ``` [Unit] @@ -82,10 +82,10 @@ Restart=always WantedBy=multi-user.target ``` -Reload the systemd daemon: +Reload the systemd daemon: \ `sudo systemctl daemon-reload` -Now you can start Tomcat server: +Now you can start Tomcat server: \ `sudo systemctl enable tomcat` @@ -99,21 +99,26 @@ Add the ``` -For the Manager app the file that needs be updated is: +By default Tomcat restricts access to Manager and Host manager. +So, to allow connections you need to remove the IP restrictions by commenting out +the listed lines from the corresponding context.xml files. \ + +For the Manager app the file that needs be updated is: \ `sudo nano /opt/tomcat/webapps/manager/META-INF/context.xml` +``` +``` -For the Host Manager app the file that needs be updated is: +For the Host Manager app the file that needs be updated is: \ `sudo nano /opt/tomcat/webapps/host-manager/META-INF/context.xml` ## test tomcat installation `sudo systemctl reload tomcat.service` -\ check tomcat installation \ http://localhost:8080/ \