Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
[Unit]
Description=Apache Tomcat Web Application Container
After=network.target

[Service]
Type=forking

Environment=JAVA_HOME=/opt/jdk/jdk-11.0.13+8
Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat

Remove old version

Delete If you installed Java following PhixFlow’s recommended installation (Install Tomcat on Linux), delete the previous installation

...

Code Block
sudo rm -r /opt/jdk/jdk-11.0.13+8

If you installed Java via another method, remove the previous package as needed. If you installed Java using a package manager, this may not be necessary if you have upgraded an existing package. If you are moving between major versions (e.g. from Java 8 to Java 11), you will need to remove the previous version unless you have reasons to retain this, e.g. for other program that run on your server. Do this following instructions for your supplier and Java and for your flavour of linux through the package manager.