Line 6: |
Line 6: |
| signal-event yum-modify | | signal-event yum-modify |
| | | |
− | install elastic and dependencies (which are not explicits). You now need to choose the version you want ! 6, 5 or 1.6 | + | install elastic and dependencies (which are not explicits). You now need to choose the version you want ! 8.x, 7.x, 6.x, 5.x, 2 or 1 |
| + | |
| yum install elasticsearch java-1.8.0-openjdk --enablerepo=elastic6.x | | yum install elasticsearch java-1.8.0-openjdk --enablerepo=elastic6.x |
| + | allow updates |
| + | db yum_repositories setprop elastic6.x status enabled TCPPort 9200 access localhost |
| + | signal-event yum-modify |
| + | |
| + | if you wanted a specific release you can use versionlock |
| + | yum install yum-plugin-versionlock -y |
| + | yum install elasticsearch-7.10.2 java-1.8.0-openjdk --enablerepo=elastic6.x |
| + | yum versionlock add elasticsearch-7.10.* |
| | | |
| configure and start | | configure and start |
| + | config set elasticsearch service status enabled |
| mkdir -p /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/ | | mkdir -p /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/ |
| echo '{ | | echo '{ |
Line 17: |
Line 27: |
| '> /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/06elasticsearch | | '> /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/06elasticsearch |
| expand-template /etc/systemd/system-preset/49-koozali.preset | | expand-template /etc/systemd/system-preset/49-koozali.preset |
| + | echo '[Install] |
| + | WantedBy=sme-server.target |
| + | ' > /etc/systemd/system/elasticsearch.service.d/51koozali.conf |
| /etc/e-smith/events/actions/systemd-default | | /etc/e-smith/events/actions/systemd-default |
| systemctl start elasticsearch | | systemctl start elasticsearch |
Line 24: |
Line 37: |
| signal-event yum-modify | | signal-event yum-modify |
| | | |
− | install elastic and dependencies (which are not explicits). You now need to choose the version you want ! 6, 5 or 1.6 | + | install elastic and dependencies (which are not explicits). You now need to choose the version you want 6.x, 5.x, 2 or 1 |
| yum install elasticsearch java-1.8.0-openjdk --enablerepo=elastic6.x | | yum install elasticsearch java-1.8.0-openjdk --enablerepo=elastic6.x |
| + | allow updates |
| + | db yum_repositories setprop elastic6.x status enabled |
| + | signal-event yum-modify |
| + | |
| 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 |