#!/bin/bashmkdir -p /home/esusercd /home/esuserwget http://10.12.xx.xx:8090/search_plugins/sd_waitforit_synonym.sh -O sd_waitforit_synonym.sh chown -R esuser.esuser /home/esuser/sd_waitforit_synonym.shchown -R esuser.esuser /web/esuserchmod +x sd_waitforit_synonym.shsu - esuser -c 'bash /home/esuser/sd_waitforit_synonym.sh'echo "15 9 * * * esuser /bin/bash /home/esuser/sd_waitforit_synonym.sh > /home/search_v/var/elasticsearch/logs/sd_waitforit_synonym.log 2>&1 &" >> /etc/crontabcd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9200/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-searchrm -rf pluginswget http://10.12.xx.xx:8090/search_plugins/plugins.tar.gz tar xf plugins.tar.gzchmod -R pluginscd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9200/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/configwget http://10.12.xx.xx:8090/search_plugins/sd_seg_ik.policy -O sd_seg_ik.policycd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9200/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/binmv elasticsearch elasticsearch.`date +%Y%m%d%H%M%S`wget http://10.12.xx.xx:8090/search_plugins/elasticsearch -O elasticsearchchown -R esuser.esuser /web/esusercd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9201/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-searchrm -rf pluginswget http://10.12.xx.xx:8090/search_plugins/plugins.tar.gz tar xf plugins.tar.gzchmod -R pluginscd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9201/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/configwget http://10.12.xx.xx:8090/search_plugins/sd_seg_ik.policy -O sd_seg_ik.policycd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9201/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/binmv elasticsearch elasticsearch.`date +%Y%m%d%H%M%S`wget http://10.12.xx.xx:8090/search_plugins/elasticsearch -O elasticsearchchown -R esuser.esuser /web/esusercd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9202/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-searchrm -rf pluginswget http://10.12.xx.xx:8090/search_plugins/plugins.tar.gz tar xf plugins.tar.gzchmod -R pluginscd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9202/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/configwget http://10.12.xx.xx:8090/search_plugins/sd_seg_ik.policy -O sd_seg_ik.policycd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9202/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/binmv elasticsearch elasticsearch.`date +%Y%m%d%H%M%S`wget http://10.12.xx.xx:8090/search_plugins/elasticsearch -O elasticsearchchown -R esuser.esuser /web/esusercd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9203/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-searchrm -rf pluginswget http://10.12.xx.xx:8090/search_plugins/plugins.tar.gz tar xf plugins.tar.gzchmod -R pluginscd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9203/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/configwget http://10.12.xx.xx:8090/search_plugins/sd_seg_ik.policy -O sd_seg_ik.policycd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9203/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/binmv elasticsearch elasticsearch.`date +%Y%m%d%H%M%S`wget http://10.12.xx.xx:8090/search_plugins/elasticsearch -O elasticsearchchown -R esuser.esuser /web/esusersu - esuser -c 'sh /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9200/elasticsearch-6.0.0-browser-search/op_bin/shutdown.sh'su - esuser -c 'sh /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9200/elasticsearch-6.0.0-browser-search/op_bin/start.sh'su - esuser -c 'sh /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9201/elasticsearch-6.0.0-browser-search/op_bin/shutdown.sh'su - esuser -c 'sh /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9201/elasticsearch-6.0.0-browser-search/op_bin/start.sh'su - esuser -c 'sh /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9202/elasticsearch-6.0.0-browser-search/op_bin/shutdown.sh'su - esuser -c 'sh /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9202/elasticsearch-6.0.0-browser-search/op_bin/start.sh'su - esuser -c 'sh /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9203/elasticsearch-6.0.0-browser-search/op_bin/shutdown.sh'su - esuser -c 'sh /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9203/elasticsearch-6.0.0-browser-search/op_bin/start.sh'