Update 'Installation Java 8 JDK & Jetty 9'

Kaimbacher 2022-06-30 12:55:35 +00:00
parent 0d70c03514
commit 42e22c7ddd

@ -51,8 +51,8 @@ http://manpages.ubuntu.com/manpages/bionic/de/man8/useradd.8.html
``` ```
cd /opt/jetty cd /opt/jetty
sudo chown jetty:jetty /opt/jetty/ sudo chown jetty:jetty /opt/jetty/
sudo chgrp -R jetty /opt/jetty sudo chgrp --recursive jetty /opt/jetty
sudo chown -R jetty webapps/ temp/ logs/ sudo chown --recursive jetty webapps/ temp/ logs/
``` ```
### config jetty to use /opt/webbase/ for web directory ### config jetty to use /opt/webbase/ for web directory
@ -143,9 +143,33 @@ WantedBy=multi-user.target
Alias=jetty9.service Alias=jetty9.service
``` ```
### Editd default environmmet files for jetty
`sudo nano /etc/default/jetty` \
```
# change to 'no' or uncomment to use the default setting in /etc/default/rcS
VERBOSE=yes
# Run Jetty as this user ID (default: jetty)
# Set this to an empty string to prevent Jetty from starting automatically
JETTY_USER=jetty
START_INI=/opt/webbase/start.ini
JETTY_HOME=/opt/jetty
JETTY_BASE=/opt/webbase
JETTY_CONF=/opt/jetty/etc/jetty.conf
JETTY_PID=/var/run/jetty.pid
JETTY_START=/opt/jetty/start.jar
```
Reload the systemd daemon: \ Reload the systemd daemon: \
`sudo systemctl daemon-reload` `sudo systemctl daemon-reload`
Now you can start jetty server: \ Now you can start jetty server: \
`sudo systemctl enable jetty9.service` \ `sudo systemctl enable jetty9.service` \
`sudo systemctl start jetty9.service` `sudo systemctl start jetty9.service`
**check tomcat installation** \
http://localhost:8080/