Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| tutorial:adm:server_preparation [2021/11/02 13:06] – [Tomcat] steinhartm | tutorial:adm:server_preparation [2024/01/10 10:35] (current) – [Java - CentOS8] koulaj | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| * It is possible to use Debian (we tested on Stretch) or other distributions, | * It is possible to use Debian (we tested on Stretch) or other distributions, | ||
| * PostgreSQL 12.x - installed from OS packages. | * PostgreSQL 12.x - installed from OS packages. | ||
| - | * Java 11 - installed from OS packages. | + | * Java 11 (Java 21 for CzechIdM 13.1.0+) |
| - | * Apache Tomcat | + | * Apache Tomcat |
| * Apache HTTPd 2.4.x - installed from OS packages. Can be replaced by nGinx. | * Apache HTTPd 2.4.x - installed from OS packages. Can be replaced by nGinx. | ||
| * All services start via systemd. | * All services start via systemd. | ||
| * Each service runs under dedicated non-privileged user. | * Each service runs under dedicated non-privileged user. | ||
| + | |||
| ===== Instalation and software configuration ===== | ===== Instalation and software configuration ===== | ||
| Line 222: | Line 223: | ||
| </ | </ | ||
| + | |||
| + | For CzechIdM 13.1.0+: | ||
| + | |||
| + | < | ||
| + | dnf install -y java-21-openjdk-headless java-21-openjdk-devel | ||
| + | |||
| + | </ | ||
| + | |||
| ===== Tomcat ===== | ===== Tomcat ===== | ||
| Line 396: | Line 405: | ||
| <user username=" | <user username=" | ||
| </ | </ | ||
| + | |||
| </ | </ | ||
| Line 412: | Line 422: | ||
| | | ||
| </ | </ | ||
| + | |||
| </ | </ | ||
| Line 419: | Line 430: | ||
| <code bash> | <code bash> | ||
| systemctl restart tomcat | systemctl restart tomcat | ||
| + | |||
| </ | </ | ||
| Line 430: | Line 442: | ||
| <code bash> | <code bash> | ||
| rm -rf / | rm -rf / | ||
| + | |||
| </ | </ | ||
| Line 438: | Line 451: | ||
| <code xml> | <code xml> | ||
| <Server port=" | <Server port=" | ||
| + | |||
| </ | </ | ||
| Line 480: | Line 494: | ||
| < | < | ||
| </ | </ | ||
| + | |||
| </ | </ | ||
| Line 485: | Line 500: | ||
| === Rotating Tomcat logs === | === Rotating Tomcat logs === | ||
| - | Default Tomcat logger | + | Default Tomcat logger |
| <file txt tomcat> | <file txt tomcat> | ||
| Line 497: | Line 512: | ||
| compress | compress | ||
| } | } | ||
| + | |||
| </ | </ | ||
| Line 518: | Line 534: | ||
| </ | </ | ||
| + | |||
| ====== Apache httpd as a reverse proxy ====== | ====== Apache httpd as a reverse proxy ====== | ||