Elasticsearch升级指南
1 停止原版本服务
systemctl status es systemctl stop es
2 备份elasticsearch数据
查看es数据路径
cat elasticsearch-6.8.0/config/elasticsearch.yml|grep path.data
使用tar打包备份数据路径(备份前请注意磁盘空间和数据大小)
tar -czf esdata_upgrade_bak.tar.gz esdata
3 安装新版本
本次升级由6.8.0版本升级到6.8.18版本。
3.1 解压新版本安装包
安装包下载地址:https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.18.tar.gz
将6.8.18版本的安装包解压到和6.8.0同级目录
tar -xzf elasticsearch-6.8.18.tar.gz
3.2 修改系统服务
替换启动和配置文件路径
sed -i 's/6.8.0/6.8.18/g' /usr/lib/systemd/system/es.service
重新加载服务
systemctl daemon-reload
3.3 复制原配置文件至新版本
/bin/cp -p elasticsearch-6.8.0/config/* elasticsearch-6.8.18/config/
其中 elasticsearch.yml是主配置文件、jvm.options是服务内存设置、elasticsearch.keystore记录了用户身份验证信息、users和users_roles记录了用户信息,这些都是需要拷贝过来的。
3.4 Elasticsearch目录文件授权(非常重要)
系统服务配置文件中我们可以看到使用的是elsearch用户和elsearch组权限去启动es服务的。
chown elsearch:elsearch -R elasticsearch-6.8.18
3.5 启动elasticsearch服务
systemctl start es.service systemctl status es.service
esdata/logs目录下的日志文件中,可以进行查看服务启动过程。
Elasticsearch升级指南
1 停止原版本服务systemctl status essystemctl stop es2 备份elasticsearch数据查看es数据路径cat elasticsearch-6.8.0/config/elastics...
点击下载文档
上一篇:Rabbitmq升级下一篇:Logstash升级
本文2024-09-23 01:13:55发表“云苍穹知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-cangqiong-144622.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
- 组织人员同步(星空旗舰-飞书)操作手册V1.0.docx
- 金蝶云·苍穹-数据表模型设计器整体介绍_20241017.pdf
- 金蝶云·苍穹新手入门实战课程配套课件 -5第五章.zip
- 金蝶云·苍穹新手入门实战课程配套课件 -1第一章.zip
- 金蝶云·苍穹-平台引领,Cosmic让智能无处不在.pdf
- KIS云·旗舰版7.0 生产任务管理解决方案(2024.08.01).pptx
- 金蝶云·苍穹新手入门实战课程配套课件 -4第四章.zip
- 金蝶云·苍穹新手入门实战课程配套课件 -7第七章.zip
- 益企成长讲堂-构建透明化生产车间的新篇章.pptx
- 金蝶KIS云旗舰版移动系列整体配置和应用方案介绍(20240815直播).pptx
热门文章