博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ES插件升级
阅读量:5227 次
发布时间:2019-06-14

本文共 4411 字,大约阅读时间需要 14 分钟。

#!/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'

 

转载于:https://www.cnblogs.com/lwhctv/p/10670157.html

你可能感兴趣的文章
使用IDEA实现tomcat的热加载
查看>>
SpringMVC(十) RequestMapping RequestHeader注解
查看>>
限制结果集行数
查看>>
泛型约束
查看>>
洛谷P1198 [JSOI2008]最大数
查看>>
Linux gcc编译之-std选项
查看>>
MFC单文档的视图分割
查看>>
bzoj3631 [JLOI2014]松鼠的新家
查看>>
Vim比较文本
查看>>
Spring第四篇【Intellij idea环境下、Struts2和Spring整合】
查看>>
简单的菜单递归
查看>>
set实现数组去重
查看>>
Wpf ListBox数据绑定实例1--绑定字典集合
查看>>
《设计模式》一书中的23种设计模式
查看>>
两个对象比较
查看>>
实现一个聊天功能的对话框
查看>>
单例模式的优缺点和使用场景
查看>>
C# Enum,Int,String的互相转换
查看>>
买卖股票的最佳时机
查看>>
Java 与 .NET 的平台发展之争
查看>>