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 | ||
documentation:server-install-components [2019/01/04 11:07] mpospisek [System variables setting] |
documentation:server-install-components [2019/01/27 08:02] mpospisek [Tomcat] |
||
---|---|---|---|
Line 115: | Line 115: | ||
# D | install systemd unit file | # D | install systemd unit file | ||
# create and open unit file service | # create and open unit file service | ||
- | vi / | + | #vi / |
- | </ | + | echo \ |
- | File contents: | + | "[Unit] |
- | <sxh bash> | + | |
- | [Unit] | + | |
Description=Apache Tomcat 9.0.x Servlet Container | Description=Apache Tomcat 9.0.x Servlet Container | ||
After=syslog.target network.target | After=syslog.target network.target | ||
Line 127: | Line 125: | ||
Group=tomcat | Group=tomcat | ||
Type=forking | Type=forking | ||
- | #Environment=JAVA_HOME=/ | + | Environment=JAVA_HOME=/ |
- | Environment=JAVA_HOME=/ | + | #Environment=JAVA_HOME=/ |
Environment=CATALINA_PID=/ | Environment=CATALINA_PID=/ | ||
Environment=CATALINA_HOME=/ | Environment=CATALINA_HOME=/ | ||
Line 136: | Line 134: | ||
[Install] | [Install] | ||
- | WantedBy=multi-user.target | + | WantedBy=multi-user.target" >/ |
- | </sxh> | + | |
- | + | # Prepare config files | |
- | Prepare config files | + | # / |
- | <codedoc code: | + | echo \ |
- | vi / | + | "#!/bin/bash -x |
- | </ | + | |
- | + | ||
- | <sxh bash> | + | |
- | #!/bin/bash -x | + | |
cd $CATALINA_BASE | cd $CATALINA_BASE | ||
- | ./ | + | ./ |
- | </sxh> | + | |
- | <codedoc code: | + | # / |
- | vi / | + | echo \ |
- | </ | + | "#!/bin/bash -x |
- | + | ||
- | <sxh bash> | + | |
- | #!/bin/bash -x | + | |
cd $CATALINA_BASE | cd $CATALINA_BASE | ||
- | ./ | + | ./ |
- | </sxh> | + | |
- | The Dcom.sun.management lines are just voluntarily, | + | # / |
- | <codedoc code: | + | # The Dcom.sun.management lines are just voluntarily, |
- | vi / | + | # *** Check validity of Xms-Xmx settings in your environment *** |
- | </ | + | echo \ |
- | + | "CATALINA_OPTS=" | |
- | <sxh bash> | + | |
- | CATALINA_OPTS=" | + | |
| | ||
| | ||
Line 175: | Line 162: | ||
| | ||
| | ||
- | " | + | " |
+ | |||
+ | # make the scripts executable | ||
+ | chmod +x / | ||
</ | </ | ||
- | < | + | Add ${catalina.home}/ |
- | cd / | + | |
- | chmod +x *.sh | + | < |
- | # | + | |
vi / | vi / | ||
</ | </ | ||
Line 290: | Line 279: | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</ | </ | ||
- | + | ||
- | <codedoc code:bash> | + | Modify / |
+ | |||
+ | <sxh bash> | ||
echo ' | echo ' | ||
echo ' | echo ' | ||
echo ' | echo ' | ||
- | echo 'OPENAAA_AUTHORITY=" | + | echo OPENAAA_AUTHORITY=\"`hostname`\" >>/ |
- | vi / | + | tail -3 / |
- | </codedoc> | + | </sxh> |
- | <sxh bash> | ||
- | # Edit this lines ... | ||
- | OPENAAA_AUTHORITY=" | ||
- | </ | ||
==== Config files settings ==== | ==== Config files settings ==== | ||
Line 348: | Line 335: | ||
</ | </ | ||
- | <codedoc code: | ||
- | vi 00-mpm.conf | ||
- | </ | ||
<sxh bash> | <sxh bash> | ||
+ | cat 00-mpm.conf | grep prefork | ||
LoadModule mpm_prefork_module modules/ | LoadModule mpm_prefork_module modules/ | ||
</ | </ | ||
- | <codedoc code:bash> | + | <sxh bash> |
- | vi 00-proxy.conf | + | echo \ |
- | </ | + | "# This file configures all the proxy modules: |
- | <sxh bash> | + | |
- | # This file configures all the proxy modules: | + | |
LoadModule proxy_module modules/ | LoadModule proxy_module modules/ | ||
#LoadModule lbmethod_bybusyness_module modules/ | #LoadModule lbmethod_bybusyness_module modules/ | ||
Line 375: | Line 358: | ||
#LoadModule proxy_hcheck_module modules/ | #LoadModule proxy_hcheck_module modules/ | ||
#LoadModule proxy_scgi_module modules/ | #LoadModule proxy_scgi_module modules/ | ||
- | #LoadModule proxy_wstunnel_module modules/ | + | #LoadModule proxy_wstunnel_module modules/ |
</ | </ | ||
Line 383: | Line 366: | ||
<sxh bash; highlight: [9]> | <sxh bash; highlight: [9]> | ||
- | # | + | echo \ |
+ | "# | ||
# This file loads most of the modules included with the Apache HTTP | # This file loads most of the modules included with the Apache HTTP | ||
# Server itself. | # Server itself. | ||
Line 455: | Line 439: | ||
LoadModule version_module modules/ | LoadModule version_module modules/ | ||
#LoadModule vhost_alias_module modules/ | #LoadModule vhost_alias_module modules/ | ||
- | #LoadModule watchdog_module modules/ | + | #LoadModule watchdog_module modules/ |
</ | </ | ||