Line 7: |
Line 7: |
| | | |
| 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 | | 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 26: |
Line 36: |
| install elastic and dependencies (which are not explicits). You now need to choose the version you want 6.x, 5.x, 2 or 1 | | 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 |