diff --git a/Installation-Java-8-JDK-%26-Jetty-9.md b/Installation-Java-8-JDK-%26-Jetty-9.md index 8e896bd..2f33b8d 100644 --- a/Installation-Java-8-JDK-%26-Jetty-9.md +++ b/Installation-Java-8-JDK-%26-Jetty-9.md @@ -51,8 +51,8 @@ http://manpages.ubuntu.com/manpages/bionic/de/man8/useradd.8.html ``` cd /opt/jetty sudo chown jetty:jetty /opt/jetty/ -sudo chgrp -R jetty /opt/jetty -sudo chown -R jetty webapps/ temp/ logs/ +sudo chgrp --recursive jetty /opt/jetty +sudo chown --recursive jetty webapps/ temp/ logs/ ``` ### config jetty to use /opt/webbase/ for web directory @@ -143,9 +143,33 @@ WantedBy=multi-user.target 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: \ `sudo systemctl daemon-reload` Now you can start jetty server: \ `sudo systemctl enable jetty9.service` \ `sudo systemctl start jetty9.service` + + +**check tomcat installation** \ +http://localhost:8080/