1.执行curl -XGET 'localhost:9200/_cat/indices?v&pretty' 报401
2.修改配置xpack.security.enabled: false - true
3.就可以了