elasticsearch 7.1 401 Unauthorized

1.执行curl -XGET 'localhost:9200/_cat/indices?v&pretty'  报401

2.修改配置xpack.security.enabled: false - true

3.就可以了

原文地址:https://www.cnblogs.com/hixiaowei/p/11460723.html