User Tools

Site Tools


installation:02-software-components

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
installation:02-software-components [2019/11/11 22:05]
mpospisek [System variables setting]
installation:02-software-components [2020/02/06 11:10]
mpospisek [DB configuration]
Line 33: Line 33:
 <sxh bash> <sxh bash>
 # IPv4 local connections: # IPv4 local connections:
-host    all             all             10.0.0.0/             md5 
 host    all             all             127.0.0.1/32            trust host    all             all             127.0.0.1/32            trust
 </sxh> </sxh>
Line 39: Line 38:
 <codedoc code:bash> <codedoc code:bash>
 logout logout
 +systemctl restart postgresql-9.6.service
 </codedoc> </codedoc>
  
Line 48: Line 48:
 <codedoc code:bash> <codedoc code:bash>
 cd /opt cd /opt
-wget https://download.java.net/java/GA/jdk13/5b8a42f3905b406298b72d750b6919f6/33/GPL/openjdk-13_linux-x64_bin.tar.gz+wget https://download.java.net/java/GA/jdk13.0.2/d4173c853231432d94f001e99d882ca7/8/GPL/openjdk-13.0.2_linux-x64_bin.tar.gz
    
-tar -xvf openjdk-13_linux-x64_bin.tar.gz+tar -xvf openjdk-13.0.2_linux-x64_bin.tar.gz 
 +ln -s jdk-13.0.2 jdk-13
 </codedoc> </codedoc>
  
 ==== Software Configuration ==== ==== Software Configuration ====
-<codedoc code:bash>  +We need to add one more file to JDK distribution 
-vi /etc/environment+<codedoc bash> 
 +/opt/jdk-13/lib/fontconfig.properties
 </codedoc> </codedoc>
  
-<sxh>  +<sxh bash
-export JAVA_HOME=/opt/jdk-13/ +version=1 
-export PATH=$PATH:/opt/jdk-13/bin+sequence.allfonts=default 
 </sxh> </sxh>
- 
-<codedoc code:bash>  
-source /etc/environment 
-echo $JAVA_HOME 
-java -version 
-</codedoc> 
- 
 ===== Tomcat ===== ===== Tomcat =====
  
Line 82: Line 77:
 # install tomcat to the /opt/tomcat directory # install tomcat to the /opt/tomcat directory
 mkdir /opt/apache-tomcat-9.0.6 mkdir /opt/apache-tomcat-9.0.6
-tar xvf apache-tomcat-9*tar.gz -C /opt/apache-tomcat-9.0.6 --strip-components=1+ 
 +tar xvf apache-tomcat-9*tar.gz -C /opt/apache-tomcat-9.0.6 ~~codedoc:clean:--~~strip-components=1 
 # symlink /opt/tomcat to /opt/apache-tomcat-9.0.6 # symlink /opt/tomcat to /opt/apache-tomcat-9.0.6
 ln -s /opt/apache-tomcat-9.0.6 /opt/tomcat ln -s /opt/apache-tomcat-9.0.6 /opt/tomcat
Line 133: Line 130:
    
 [Install] [Install]
-WantedBy=multi-user.target" >/usr/lib/systemd/system/tomcat9.service+WantedBy=multi-user.target
 </sxh>  </sxh> 
  
Line 167: Line 164:
  -XX:+UseG1GC   -XX:+UseG1GC 
  -XX:+UseStringDeduplication   -XX:+UseStringDeduplication 
- -XX:MaxGCPauseMillis=100+ -XX:MaxGCPauseMillis=100"
 </sxh>  </sxh> 
    
Line 219: Line 216:
     URIEncoding="UTF-8" />     URIEncoding="UTF-8" />
 </sxh>   </sxh>  
 +
 +Make tomcat user also owner of the jdk-13 directory
 +<codedoc code:bash>
 +chown -R tomcat:root /opt/jdk-13/
 +</codedoc>
  
 Optional:  Optional: 
Line 229: Line 231:
 CodeIT Apache 2.4 and related modules CodeIT Apache 2.4 and related modules
  
-Download CodeIT Apache 2.4.25 **(NOT NEWER)** RPMs from %%https://repo.codeit.guru/packages/centos/7/x86_64/%%. Put them into selected directory (/root/apache/CodeIT) and from it yum localinstall one module after another, to prevent installation from external repositories.+Download CodeIT Apache 2.4.25 **(NOT NEWER)** RPMs from %%https://repo.codeit.guru/packages/centos/7/x86_64/%%. 
  
-Except for modules libnghttp2 and apr-utilThey will be downloaded from the epel-release repository.+**If the files are no longer on the above URL, you can download them from here:** {{ :install:httpd-2.4.25-codeit.zip | httpd-2.4.25-codeit.zip}}
  
 <codedoc code:bash> <codedoc code:bash>
Line 238: Line 240:
 cd apache/CodeIT cd apache/CodeIT
  
-wget ~~codedoc:clean:https:~~//repo.codeit.guru/packages/centos/7/x86_64/apr-1.5.2-1.el7.codeit.x86_64.rpm +wget ~~codedoc:clean:https:~~//repo.codeit.guru/packages/archive/centos/7/x86_64/apr-1.5.2-1.el7.codeit.x86_64.rpm 
-wget ~~codedoc:clean:https:~~//repo.codeit.guru/packages/centos/7/x86_64/httpd-2.4.25-3.el7.codeit.x86_64.rpm +wget ~~codedoc:clean:https:~~//repo.codeit.guru/packages/archive/centos/7/x86_64/httpd-2.4.25-3.el7.codeit.x86_64.rpm 
-wget ~~codedoc:clean:https:~~//repo.codeit.guru/packages/centos/7/x86_64/httpd-filesystem-2.4.25-3.el7.codeit.noarch.rpm +wget ~~codedoc:clean:https:~~//repo.codeit.guru/packages/archive/centos/7/x86_64/httpd-filesystem-2.4.25-3.el7.codeit.noarch.rpm 
-wget ~~codedoc:clean:https:~~//repo.codeit.guru/packages/centos/7/x86_64/httpd-tools-2.4.25-3.el7.codeit.x86_64.rpm +wget ~~codedoc:clean:https:~~//repo.codeit.guru/packages/archive/centos/7/x86_64/httpd-tools-2.4.25-3.el7.codeit.x86_64.rpm 
-wget ~~codedoc:clean:https:~~//repo.codeit.guru/packages/centos/7/x86_64/mod_ssl-2.4.25-3.el7.codeit.x86_64.rpm +wget ~~codedoc:clean:https:~~//repo.codeit.guru/packages/archive/centos/7/x86_64/mod_ssl-2.4.25-3.el7.codeit.x86_64.rpm 
- +</codedoc> 
 + 
 +Put them into selected directory (/root/apache/CodeIT) and from it yum localinstall one module after another, to prevent installation from external repositories. 
 + 
 +Except for modules libnghttp2 and apr-util. They will be downloaded from the epel-release repository. 
 + 
 +<codedoc code:bash>
 yum -y localinstall apr-1.5.2-1.el7.codeit.x86_64.rpm yum -y localinstall apr-1.5.2-1.el7.codeit.x86_64.rpm
 yum -y localinstall httpd-filesystem-2.4.25-3.el7.codeit.noarch.rpm yum -y localinstall httpd-filesystem-2.4.25-3.el7.codeit.noarch.rpm
Line 296: Line 304:
        
 <sxh bash> <sxh bash>
-echo 'LANG=C' >>/etc/sysconfig/httpd +LANG=C 
-echo 'OPENAAA_PROTOCOL="aaa"' >>/etc/sysconfig/httpd +OPENAAA_PROTOCOL="aaa" 
-echo 'OPENAAA_HANDLER="/usr/local/bin/aducid"' >>/etc/sysconfig/httpd +OPENAAA_HANDLER="/usr/local/bin/tlsbinder
-echo OPENAAA_AUTHORITY=\"`hostname`\" >>/etc/sysconfig/httpd +OPENAAA_AUTHORITY=`hostname` 
-tail -3 /etc/sysconfig/httpd +
 </sxh>  </sxh> 
  
Line 348: Line 355:
 </codedoc> </codedoc>
    
-<sxh bash> +<codedoc code:bash> 
 cat 00-mpm.conf | grep prefork cat 00-mpm.conf | grep prefork
 +# ... result should be:
 LoadModule mpm_prefork_module modules/mod_mpm_prefork.so LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
-</sxh+</codedoc
    
-<sxh bash> +<codedoc code:bash> 
-echo \ +vi 00-proxy.conf 
-"# This file configures all the proxy modules:+</codedoc>  
 + 
 +<sxh>  
 +# This file configures all the proxy modules:
 LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_module modules/mod_proxy.so
 #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
Line 371: Line 382:
 #LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so #LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
 #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
-#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so" > 00-proxy.conf +#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so  
 </sxh>  </sxh> 
    
Line 379: Line 390:
  
 <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 452: Line 462:
 LoadModule version_module modules/mod_version.so LoadModule version_module modules/mod_version.so
 #LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so
-#LoadModule watchdog_module modules/mod_watchdog.so" > 00-base.conf+#LoadModule watchdog_module modules/mod_watchdog.so
 </sxh> </sxh>
  
installation/02-software-components.txt · Last modified: 2020/03/25 21:17 by mpospisek