diff --git a/Installation-Java-8-JDK-%26-Jetty-9.md b/Installation-Java-8-JDK-%26-Jetty-9.md index 16f59b1..71b5b2e 100644 --- a/Installation-Java-8-JDK-%26-Jetty-9.md +++ b/Installation-Java-8-JDK-%26-Jetty-9.md @@ -10,13 +10,43 @@ deb [signed-by=/usr/share/keyrings/artifactory.gpg.public] https://packages.adop sudo apt update sudo apt install temurin-8-jdk -sudo update-java-alternatives --list sudo update-alternatives --config java -java -version + ``` +**Kontrolle welche Java Version installiert ist:** -`sudo update-java-alternatives -l` +`sudo update-java-alternatives --list` \ +oder auch: \ +`java -version` \ Output: -temurin-8-jdk-amd64 1081 /usr/lib/jvm/temurin-8-jdk-amd64 \ No newline at end of file +temurin-8-jdk-amd64 1081 /usr/lib/jvm/temurin-8-jdk-amd64 + +# Step 2 Install Jetty 9 + +**Home Verzeichnis für Jetty anlegen:**\ +`sudo mkdir /opt/jetty` + + +**Jetty9 downloaden:** \ +`cd /tmp` \ +```wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.46.v20220331/jetty-distribution-9.4.46.v20220331.tar.gz``` \ + +**Jetty 9 ins Verzeichnis opt/jetty entpacken:** \ +`sudo tar xzvf jetty-distribution-9.4.46.v20220331.tar.gz -C /opt/jetty --strip-components=1` \ +`sudo chown -R root /opt/jetty` + +**create and setup jetty user** \ +`sudo mkdir /opt/jetty/temp` + +'sudo useradd --user-group --shell /bin/false --home-dir /opt/jetty/temp jetty`\ +for parameters see: \ +http://manpages.ubuntu.com/manpages/bionic/de/man8/useradd.8.html + +sudo usermod -a -G jetty administrator + + + + +