ElasticSearch6 報錯FORBIDDEN/12/index read-only / allow delete (api)

FORBIDDEN/12/index read-only / allow delete (api)json

官方解決方法:api

curl -XPUT -H "Content-Type: application/json" http://127.0.0.1:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'

_all 能夠改成本身的索引名稱,也能夠直接執行app

curl -XPUT -H "Content-Type: application/json" http://127.0.0.1:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
相關文章
相關標籤/搜索