ELK之从6.3.1升级至6.6.2

  需要把原6.3.1版本升级为6.6.2版本

  1,官网下载rpm包

  2,升级elasticsearch和kibana

rpm -U elasticsearch-6.6.2.rpm
rpm -U kibana-6.6.2-x86_64.rpm
rpm -U logstash-6.6.2.rpm

  

  配置还是使用原配置,新版本配置会在配置文件夹生成一个新的配置文件

cluster.name: my-elk
node.name: dev-es-kibana
path.data: /data/es-data
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: false
network.host: 0.0.0.0
http.port: 9200
#集群个节点IP地址,也可以使用els、els.shuaiguoxia.com等名称,需要各节点能够解析
#discovery.zen.ping.unicast.hosts: ["172.16.30.11","172.16.40.12"]
#集群节点数
#discovery.zen.minimum_master_nodes: 2
#增加参数,使head插件可以访问es  
http.cors.enabled: true
http.cors.allow-origin: "*"

  

server.port: 5601
server.host: "172.16.30.11"
server.name: "dev-es-kinaba"
elasticsearch.url: "http://172.16.30.11:9200"
kibana.index: ".kibana"

  重启

systemctl restart elasticsearch
systemctl restart kibana

  如果启动elastic报错

  修改配置文件增加java家目录

/etc/sysconfig/elasticsearch

  如果启动elasticsearch报插件版本不对的错误,把旧的插件remvoe掉重新安装一遍即可

/usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-geoip
/usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-user-agent

/usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-user-agent
/usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-geoip

  

  启动kibana访问报错

Kibana server is not ready yet

  等待一会即可

 

   升级成功

 

posted @ 2019-03-28 10:43  minseo  阅读(543)  评论(0编辑  收藏  举报