2021-08-20 2021-08-20 小Demo代码-自定义ViewGroup

Service Fabric - 生命周期与运行状况

  返回  

Elasticsearch密码验证

2021/8/20 16:52:28 浏览:

es7.0版本安装包带了xpack功能

修改配置

在elasticsearch.yml添加如下配置

xpack.security.enabled: true
#加密方式
xpack.license.self_generated.type: basic
xpack.security.transport.ssl.enabled: true

重启es

以后台方式运行

./elasticsearch -d

设置密码

./elasticsearch-setup-passwords interactive

根据提示输入密码

warning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOME
Future versions of Elasticsearch will require Java 11; your Java version from [/usr/local/java/jdk1.8.0_201/jre] does not meet this requirement. Consider switching to a distribution of Elasticsearch with a bundled JDK. If you are already using a distribution with a bundled JDK, ensure the JAVA_HOME environment variable is not set.
Initiating the setup of passwords for reserved users elastic,apm_system,kibana,kibana_system,logstash_system,beats_system,remote_monitoring_user.
You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N]y


Enter password for [elastic]: 
Reenter password for [elastic]: 
Enter password for [apm_system]: 
Reenter password for [apm_system]: 
Enter password for [kibana_system]: 
Reenter password for [kibana_system]: 
Enter password for [logstash_system]: 
Reenter password for [logstash_system]: 
Enter password for [beats_system]: 
Reenter password for [beats_system]: 
Enter password for [remote_monitoring_user]: 
Reenter password for [remote_monitoring_user]: 
Changed password for user [apm_system]
Changed password for user [kibana_system]
Changed password for user [kibana]
Changed password for user [logstash_system]
Changed password for user [beats_system]
Changed password for user [remote_monitoring_user]
Changed password for user [elastic]

请添加图片描述
使用http调用的方式
在https://www.base64decode.org/网站进行加密
添加请求头Authorization,password值为加密后的密码(Basic password)
在这里插入图片描述

在这里插入图片描述

联系我们

如果您对我们的服务有兴趣,请及时和我们联系!

服务热线:18288888888
座机:18288888888
传真:
邮箱:888888@qq.com
地址:郑州市文化路红专路93号