Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:adm:server_preparation_tmp [2020/03/11 09:50] urbanl [Database server installation - CentOS8 -!CHANGED] |
tutorial:adm:server_preparation_tmp [2020/03/11 13:40] urbanl [Apache Tomcat configuration] |
||
---|---|---|---|
Line 187: | Line 187: | ||
systemctl enable postgresql | systemctl enable postgresql | ||
</ | </ | ||
- | ==== DB server configuration ==== | + | ==== DB server configuration |
First of all, enable the password authentication. | First of all, enable the password authentication. | ||
- | In the file ''/ | + | In the file ''/ |
< | < | ||
host all | host all | ||
Line 204: | Line 204: | ||
Now we can do DB sizing. We presume the system has 3GB dedicated for the db. We can also log the queries logging (those over 200ms). **For particular sizing, use a [[https:// | Now we can do DB sizing. We presume the system has 3GB dedicated for the db. We can also log the queries logging (those over 200ms). **For particular sizing, use a [[https:// | ||
- | In a file ''/ | + | In a file ''/ |
< | < | ||
max_connections = 100 # (change requires restart) | max_connections = 100 # (change requires restart) | ||
Line 223: | Line 223: | ||
</ | </ | ||
- | Restart DB: '' | + | Restart DB: '' |
For Debian installation, | For Debian installation, | ||
< | < | ||
- | / | + | / |
- | / | + | / |
</ | </ | ||
< | < | ||
- | ===== Java - CentOS7 | + | ===== Java - CentOS8 -! CHANGED |
- | Java must be installed before Tomcat start. It is recommended to use OpenJDK (at least 1.8) from standard OS repository. | + | Java must be installed before Tomcat start. It is recommended to use OpenJDK (at least 1.11) from standard OS repository. |
Installation: | Installation: | ||
<code bash> | <code bash> | ||
- | yum install -y java-1.8.0-openjdk-headless java-1.8.0-openjdk-devel | + | yum install -y java-11-openjdk-headless java-11-openjdk-devel |
</ | </ | ||
Line 446: | Line 446: | ||
</ | </ | ||
* Make Tomcat listen only on localhost: | * Make Tomcat listen only on localhost: | ||
- | * In the ''/ | + | * In the ''/ |
+ | * In same file configure ajp port('' | ||
+ | |||
+ | < | ||
+ | address=" | ||
+ | secretRequired=" | ||
+ | secret=" | ||
+ | port=" | ||
+ | redirectPort=" | ||
* Do not show aplication server version: | * Do not show aplication server version: |