ES插件升级

爷,独闯天下 提交于 2020-03-21 19:57:23
#!/bin/bash
mkdir -p /home/esuser
cd /home/esuser
wget 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.sh
chown -R esuser.esuser /web/esuser
chmod +x sd_waitforit_synonym.sh
su - 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/crontab

cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9200/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search
rm -rf plugins
wget http://10.12.xx.xx:8090/search_plugins/plugins.tar.gz 
tar xf plugins.tar.gz
chmod -R plugins
cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9200/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/config
wget http://10.12.xx.xx:8090/search_plugins/sd_seg_ik.policy -O sd_seg_ik.policy
cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9200/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/bin
mv elasticsearch elasticsearch.`date +%Y%m%d%H%M%S`
wget http://10.12.xx.xx:8090/search_plugins/elasticsearch -O elasticsearch
chown -R esuser.esuser /web/esuser


cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9201/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search
rm -rf plugins
wget http://10.12.xx.xx:8090/search_plugins/plugins.tar.gz 
tar xf plugins.tar.gz
chmod -R plugins
cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9201/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/config
wget http://10.12.xx.xx:8090/search_plugins/sd_seg_ik.policy -O sd_seg_ik.policy
cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9201/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/bin
mv elasticsearch elasticsearch.`date +%Y%m%d%H%M%S`
wget http://10.12.xx.xx:8090/search_plugins/elasticsearch -O elasticsearch
chown -R esuser.esuser /web/esuser


cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9202/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search
rm -rf plugins
wget http://10.12.xx.xx:8090/search_plugins/plugins.tar.gz 
tar xf plugins.tar.gz
chmod -R plugins
cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9202/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/config
wget http://10.12.xx.xx:8090/search_plugins/sd_seg_ik.policy -O sd_seg_ik.policy
cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9202/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/bin
mv elasticsearch elasticsearch.`date +%Y%m%d%H%M%S`
wget http://10.12.xx.xx:8090/search_plugins/elasticsearch -O elasticsearch
chown -R esuser.esuser /web/esuser


cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9203/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search
rm -rf plugins
wget http://10.12.xx.xx:8090/search_plugins/plugins.tar.gz 
tar xf plugins.tar.gz
chmod -R plugins
cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9203/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/config
wget http://10.12.xx.xx:8090/search_plugins/sd_seg_ik.policy -O sd_seg_ik.policy
cd /web/esuser/91a1f0b0-1369-4c39-b595-19cbf023/9203/elasticsearch-6.0.0-browser-search/elasticsearch-6.0.0-browser-search/bin
mv elasticsearch elasticsearch.`date +%Y%m%d%H%M%S`
wget http://10.12.xx.xx:8090/search_plugins/elasticsearch -O elasticsearch
chown -R esuser.esuser /web/esuser


su - 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'

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!