Update 'Installation Java 8 JDK & Jetty 9'

Kaimbacher 2022-06-30 11:52:17 +00:00
parent b60d0aada4
commit 0c2e06d6ff

@ -10,13 +10,43 @@ deb [signed-by=/usr/share/keyrings/artifactory.gpg.public] https://packages.adop
sudo apt update sudo apt update
sudo apt install temurin-8-jdk sudo apt install temurin-8-jdk
sudo update-java-alternatives --list
sudo update-alternatives --config java 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: Output:
temurin-8-jdk-amd64 1081 /usr/lib/jvm/temurin-8-jdk-amd64 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