$ sudo curl -X GET http://localhost:9200/
{"error":{"root_cause":[{"type":"status_exception","reason":"authentication not allowed"}],"type":"status_exception","reason":"authentication not allowed"},"status":403}%
这个问题主要是Engine没有连接,只有es连上了。这种报错可以考虑是不是什么服务没有起。
3.7
又遇到这个问题了,不过不是因为妹起来,而是因为鉴权。
查看setting的默认值
curl localhost:9200/_cluster/settings?include_defaults=true
注意到:
auth.disable: false
可以把ip鉴权关了,也可以直接:
curl -XPUT localhost:9200/_auth/password/用户名 -d '{"password": "密码"}'
然后每次在其他ip访问 -u username:password