日志文件可能会提供有关报错原因的线索,并指导你如何解决问题。 版本不兼容:如果你最近升级了Elasticsearch版本,新版本可能与旧版本的elasticsearch-setup-passwords工具有不兼容性。尝试使用与你的Elasticsearch版本相匹配的elasticsearch-setup-passwords版本。 环境变量问题:检查环境变量是否正确设置,特别是与Java和Elasticsearch...
你可以通过访问Elasticsearch的默认端口(通常是9200)来检查服务是否正在运行。 运行elasticsearch-setup-passwords命令: 在Elasticsearch的安装目录下,或者将Elasticsearch的bin目录添加到你的系统PATH中后,你可以运行以下命令来设置密码: bash ./elasticsearch-setup-passwords auto 或者,如果你希望手动为每个用户设置密码,可...
Elasticsearch 8.x以上,默认自动开启x-pack验证,在首次启动时,会设置密码,当再次执行elasticsearch-setup-passwords interactive就会报错,提示使用elasticsearch-reset-passwords,但是用户太多,还是想要能像8.x以下一直敲回车,设置密码。 今天偶然Elasticsearch报错,发现一个方法可以使用,记录如下: 首先,之前误操作: curl -u ...
1、修改es根目录下的config/elasticsearch.yml配置文库,写入下面配置。 xpack.security.enabled: true xpack.license.self_generated.type: basic xpack.security.transport.ssl.enabled: true 文件保存后必须重启,再进行下一步。 2、设置密码,进入bin目录下执行命令。 ./elasticsearch-setup-passwords interactive 指令...
elasticsearch-setup-passwords仅支持第一次配置elastic用户,如果在配置后依旧使用此语句进行重置会报错,需要删除es的索引.security-6(不同版本版号不一致)后再使用语句初始化。 修改es账号密码后,苍穹mc中需要同时修改monitor.es.password的值保存发布才能正常获取日志。
第三步:/bin/elasticsearch-setup-passwords interactive 启用ES默认的内置用户 安全设置用户密码 显示下面的图示:输入“y” 下面的这些用户都是ES默认的用户,需要设置密码,一定要记住,可以暂时设置相同的。后面可以改 ES默认用户 第四步:设置kibana登录的用户名、密码。在kibana.yml配置文件里进行修改 ...
To set up passwords for these users, you can use the `elasticsearch-reset-passwords` command-line tool. This tool can operate in two modes: `interactive` and `auto`. In `interactive` mode, you’re prompted to enter passwords for each built-in user. In `auto` mode, the tool generates ...
./bin/elasticsearch-setup-passwords interactive 接下来需要设置一系列的密码,可以都设置同一个密码,然后设置完成后重启ES即可 在设置认证的过程中可能会遇到的错误 代码语言:shell AI代码解释 Caused by: javax.net.ssl.SSLHandshakeException: No available authentication scheme ...
1.设置密码失败,翻遍资料,发现不是配置问题: [root@79d23e3e6630 elasticsearch]# bin/elasticsearch-setup-passwords interactive Your cluster health is currently RED. This means that some cluster data …
./elasticsearch-setup-passwords interactive 报错: Failed to authenticate user 'elastic' against http://172.16.xxx.xxx:9200/_security/_authenticate?pretty Possible causes include: * The password for the 'elastic' user has already been changed on this cluster ...