Introduction
This article provides details on how to add Tomcat to CageFS.
Procedure
- Add the tzdata-java RPM to CageFS:
cagefsctl --addrpm tzdata-java
- On CloudLinux 8.0 or above, you must also add the java RPM to CageFS:
cagefsctl --addrpm java-1.8.0-openjdk
- Create a file at /etc/cagefs/conf.d/java.cfg with the following configured within it:
[java-custom]
comment=Java-custom
paths=/usr/bin/java, /etc/alternatives/java - Update the CageFS skeleton and remount all by running the following commands:
cagefsctl --force-update; cagefsctl --remount-all