Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorial:adm:server_preparation_tmp [2020/07/24 09:00]
fiserp [Start Tomcat automatically after system startup]
tutorial:adm:server_preparation_tmp [2020/07/24 09:07]
fiserp [Java - CentOS8]
Line 203: Line 203:
 dnf install -y java-11-openjdk-headless java-11-openjdk-devel dnf install -y java-11-openjdk-headless java-11-openjdk-devel
 </code> </code>
- 
-Then create the file ''/etc/profile.d/java.sh'' with following: 
-<file bash java.sh> 
-[ -d /usr/lib/jvm/java-openjdk ] && export JAVA_HOME=/usr/lib/jvm/java-openjdk 
-</file> 
  
  
Line 296: Line 291:
 WantedBy=multi-user.target WantedBy=multi-user.target
 </file> </file>
 +<note>
   * Values of ''-Xms'' and ''-Xmx'' se are closely dependent on server sizing. If you have enough memory, we strongly recommend to use ''-Xmx 6128M'' or more.   * Values of ''-Xms'' and ''-Xmx'' se are closely dependent on server sizing. If you have enough memory, we strongly recommend to use ''-Xmx 6128M'' or more.
   * Tomcat will be started under user ''tomcat:tomcat''.   * Tomcat will be started under user ''tomcat:tomcat''.
 +</note>
  
   * Reload systemd configuration:   * Reload systemd configuration: