Changes

Jump to navigation Jump to search
451 bytes added ,  22:05, 27 October 2023
Line 1: Line 1:  
How to set elastic search on SME
 
How to set elastic search on SME
 
== install and configure==
 
== install and configure==
 +
<tabs container style="display: inline-block;" ><tab name="For SME 10">
 
installl elastic repo
 
installl elastic repo
 
  yum install smeserver-extrarepositories-elastic
 
  yum install smeserver-extrarepositories-elastic
Line 8: Line 9:  
  yum install elasticsearch java-1.8.0-openjdk  --enablerepo=elastic6.x
 
  yum install elasticsearch java-1.8.0-openjdk  --enablerepo=elastic6.x
   −
mkdir -p /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/
+
configure and start
 
+
mkdir -p /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/
echo '{
+
echo '{
 
+
push @list,qw(elasticsearch);
push @list,qw(elasticsearch);
+
$OUT.="";
 
+
}
$OUT.="";
+
'> /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/06elasticsearch
 
+
expand-template /etc/systemd/system-preset/49-koozali.preset
}
+
/etc/e-smith/events/actions/systemd-default
 
+
systemctl start elasticsearch
'> /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/06elasticsearch
+
</tab><tab name="For SME 9">
 
+
installl elastic repo
expand-template /etc/systemd/system-preset/49-koozali.preset
+
yum install smeserver-extrarepositories-elastic
 
+
signal-event yum-modify
/etc/e-smith/events/actions/systemd-default
  −
 
      +
install elastic and dependencies (which are not explicits). You now need to choose the version you want ! 6, 5 or 1.6
 +
yum install elasticsearch java-1.8.0-openjdk  --enablerepo=elastic6.x
 
make it start at every boot
 
make it start at every boot
 
  ln -s /etc/rc.d/init.d/e-smith-service  /etc/rc7.d/S95elasticsearch
 
  ln -s /etc/rc.d/init.d/e-smith-service  /etc/rc7.d/S95elasticsearch
Line 31: Line 32:  
start it for the first time
 
start it for the first time
 
  service elasticsearch start
 
  service elasticsearch start
 +
</tab></tabs>
    
== migration from 1.x to higher ==
 
== migration from 1.x to higher ==
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu