我用最简便的步骤将ElasticSearch 5.5.0升级到5.5.1
■简介
确认ElasticSearch升级的步骤。
■环境
CentOS 7:只需要一个选项,用中文本地方式释义。
■执行 (shí
yum -y update
即使不执行Install命令,elasticsearch kibana logstash也会升级至5.5.1版本。
■ X-Pack的升级版本
由于X-Pack无法通过yum进行操作,因此需要从以下链接下载zip文件:
https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-5.5.1.zip
重新安装X-Pack
#まずはlistで表示してpluginを確認 Elasticsearch だけはX-Packをremoveが必要
/usr/share/elasticsearch/bin/elasticsearch-plugin list
#旧5.5.0が残っているのでX-Packを削除
/usr/share/elasticsearch/bin/elasticsearch-plugin remove x-pack
/usr/share/kibana/bin/kibana-plugin remove x-pack
/usr/share/logstash/bin/logstash-plugin remove x-pack
#elasticsearch以外はx-packを削除しなくても再インストール可能でしたが、listで確認しましょう。
#5.5.1をインストール
/usr/share/elasticsearch/bin/elasticsearch-plugin install file:///path/x-pack-5.5.1.zip
/usr/share/kibana/bin/kibana-plugin install file:///path/x-pack-5.5.1.zip
/usr/share/logstash/bin/elogstash-plugin install file:///path/x-pack-5.5.1.zip
由於kibana yml已經初始化,請將server.host的”#”刪除以進行修改。
vi /etc/kibana/kibana.yml
server.host:”0.0.0.0”
■重新开始
systemctl daemon-reload
systemctl restart elasticsearch
systemctl restart kibana
systemctl restart logstash
如果不重新启动防火墙,就无法连接。
systemctl restart firewalld
■启动确认、关闭
curl -u elastic:changeme localhost:9200
curl -u elastic:changeme localhost:5601
我将确认是否可以用同样的方法来更新下一个版本 5.6。