摘要: 建立链接 from elasticsearch import Elasticsearch import json es = Elasticsearch( ['localhost:9200'], # 启动前嗅探es集群服务器 # sniff_on_start=True, # es集群服务器结点连接异常 阅读全文
posted @ 2021-12-27 16:08 长乐未央丫 阅读(308) 评论(0) 推荐(0)
摘要: 一、安装Elasticsearch 直接到官网下载,下载地址:https://www.elastic.co/downloads/elasticsearch 下载成功后,直接去文件夹里面找到/bin/elasticsearch.bat 双击运行就可以启动elasticsearch服务器 然后在浏览器中 阅读全文
posted @ 2021-12-27 15:30 长乐未央丫 阅读(48) 评论(0) 推荐(0)