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/09/08 08:24] – Oprava nastaveni opravneni na temp certifikatu pro apache urbanl | 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 240: | Line 249: | ||
| mkdir /opt/tomcat | mkdir /opt/tomcat | ||
| cd /opt/tomcat | cd /opt/tomcat | ||
| + | |||
| </ | </ | ||
| Line 250: | Line 260: | ||
| <code bash> | <code bash> | ||
| tar xzf apache-tomcat-9.0.45.tar.gz | tar xzf apache-tomcat-9.0.45.tar.gz | ||
| + | |||
| </ | </ | ||
| Line 257: | Line 268: | ||
| <code bash> | <code bash> | ||
| cd /opt/tomcat | cd /opt/tomcat | ||
| - | ln -s apache-tomcat-8.5.57 current | + | ln -s apache-tomcat-9.0.45 current |
| </ | </ | ||
| Line 277: | Line 289: | ||
| chown tomcat: | chown tomcat: | ||
| chmod 750 / | chmod 750 / | ||
| + | |||
| </ | </ | ||
| + | |||
| ==== Start Tomcat automatically after system startup ==== | ==== Start Tomcat automatically after system startup ==== | ||
| Line 391: | Line 405: | ||
| <user username=" | <user username=" | ||
| </ | </ | ||
| + | |||
| </ | </ | ||
| Line 407: | Line 422: | ||
| | | ||
| </ | </ | ||
| + | |||
| </ | </ | ||
| Line 414: | Line 430: | ||
| <code bash> | <code bash> | ||
| systemctl restart tomcat | systemctl restart tomcat | ||
| + | |||
| </ | </ | ||
| Line 425: | Line 442: | ||
| <code bash> | <code bash> | ||
| rm -rf / | rm -rf / | ||
| + | |||
| </ | </ | ||
| Line 433: | Line 451: | ||
| <code xml> | <code xml> | ||
| <Server port=" | <Server port=" | ||
| + | |||
| </ | </ | ||
| Line 475: | Line 494: | ||
| < | < | ||
| </ | </ | ||
| + | |||
| </ | </ | ||
| Line 480: | Line 500: | ||
| === Rotating Tomcat logs === | === Rotating Tomcat logs === | ||
| - | Default Tomcat logger | + | Default Tomcat logger |
| <file txt tomcat> | <file txt tomcat> | ||
| Line 492: | Line 512: | ||
| compress | compress | ||
| } | } | ||
| + | |||
| </ | </ | ||
| Line 513: | Line 534: | ||
| </ | </ | ||
| + | |||
| ====== Apache httpd as a reverse proxy ====== | ====== Apache httpd as a reverse proxy ====== | ||