怎么又是你

请问es如何使用账号密码连接?

Elasticsearch | 作者 chaochao6411 | 发布于2019年03月21日 | 阅读数:6443


require 'vendor/elasticsearch/autoload.php'; 
$params = array( '192.168.41.89:9200'); 
$this->es = ClientBuilder::create()->setHosts($params)->build(); 
 
已邀请:

bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127

赞同来自:

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

先设置密码:https://www.elastic.co/guide/e ... .html

再借助xpack相关api业务层面实战

要回复问题请先登录注册