但是,有时在执行elasticsearch-setup-passwords interactive命令时可能会遇到报错。以下是一些可能导致报错的常见原因以及相应的解决方法: 权限问题:确保运行命令的用户具有足够的权限访问Elasticsearch目录和文件。尝试使用具有足够权限的用户(例如root用户)执行该命令。 Elasticsearch未运行:在运行elasticsearch-setup-passwords in...
Elasticsearch 8.x以上,默认自动开启x-pack验证,在首次启动时,会设置密码,当再次执行elasticsearch-setup-passwords interactive就会报错,提示使用elasticsearch-reset-passwords,但是用户太多,还是想要能像8.x以下一直敲回车,设置密码。 今天偶然Elasticsearch报错,发现一个方法可以使用,记录如下: 首先,之前误操作: curl -u ...
./elasticsearch-setup-passwords interactive 使用auto选项时,系统会为每个内置用户生成一个随机密码并显示在终端上。使用interactive选项时,系统会提示你为每个用户输入一个密码。 根据提示,为各个内置用户设置密码: 如果你选择了interactive模式,系统会提示你为以下内置用户设置密码: elastic:Elasticsearch的超级用户,拥有...
当为es集群设置完一次密码之后,再次执行相同的命令 ./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 ...
1、ElasticSearch6.8.6 是在官网现在的源码包安装的,使用elasticsearch-plugin install x-pack安装x-pack时报程序已自带,但使用elasticsearch-plugin list 却看不到已安装的x-pack见图【1-1-2】; 【1-1-1】 【1-1-2】 2、我百度/谷歌都显示只要使用setup-passwords interactive就可以创建用户和密码,不知道是...
To run the tool in `interactive` mode, use the following command: bin/elasticsearch-reset-password --interactive To run the tool in `auto` mode, use the following command: bin/elasticsearch-reset-password --auto Remember to note down the generated passwords, especially the one for the `elasti...
进入elasticsearch目录,不同系统默认安装目录可能不同。 以CentOS 与 Ubuntu 为例,其目录在/usr/share/elasticsearch下 执行以下指令, 根据提示输入各个账户的密码 $ ./bin/elasticsearch-setup-passwords interactive Initiating the setup of passwordsforreserved users elastic,apm_system,kibana,logstash_system,beats_...
./elasticsearch-setup-passwords interactive 报错: Failed to authenticate user 'elastic' againsthttp://172.16.xxx.xxx:9200/_security/_authenticate?pretty Possible causes include: The password for the 'elastic' user has already been changed on this cluster ...
bin/elasticsearch-setup-passwords auto|interactive [-b, --batch] [-h, --help] [-E <KeyValuePair>] [-s, --silent] [-u, --url "<URL>"] [-v, --verbose]Description This command is intended for use only during the initial configuration of the Elasticsearch security features. It uses...
./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 ...