須要把原6.3.1版本升級爲6.6.2版本java
1,官網下載rpm包node
2,升級elasticsearch和kibanapython
rpm -U elasticsearch-6.6.2.rpm rpm -U kibana-6.6.2-x86_64.rpm rpm -U logstash-6.6.2.rpm
配置仍是使用原配置,新版本配置會在配置文件夾生成一個新的配置文件bootstrap
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"
重啓cors
systemctl restart elasticsearch systemctl restart kibana
若是啓動elastic報錯elasticsearch
修改配置文件增長java家目錄url
/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訪問報錯3d
Kibana server is not ready yet
等待一會便可rest
升級成功