1.重启ES:
##进入ES用户
su elastic
##输入密码
******
##进入ES文件夹
cd ~/elasticsearch-6.2.4
##执行命令重启ES
./bin/elasticsearch -d
解决报错:
curl -i -H "Content-Type:application/json" -XPUT ip:9200/transaction/_mapping/default/?pretty -d'{"default":{"properties":{"type":{"type":"text","fielddata":true}}}}'
2.ES解锁
curl -XPUT -H "Content-Type: application/json" http://ip:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
3.删除所有的索引
curl -XDELETE http://ip:9200/_all
一键部署脚本链接
centos7 ELK7.8.0 生产部署 elasticsearch7.8 一键部署_sdcxlgb的博客-优快云博客

本文档提供了详细的步骤来重启Elasticsearch服务,并解决了常见的报错问题。同时,介绍了如何通过curl命令解锁Elasticsearch的只读设置,以及如何删除所有索引,为用户提供了一键部署脚本链接。
2131

被折叠的 条评论
为什么被折叠?



