# elasticsearch-head和elasticsearch-sql 使用教程

elasticsearch-head和elasticsearch-sql 使用教程(7.4.0)


elasticsearch-head使用教程

  • 下载运行
使用内置服务器运行
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
npm run start
open http:// localhost:9100 /
这将启动在端口9100上运行的本地web服务器,为elasticsearch-head服务

elasticsearch-sql 使用教程

使用方式

  • 进入elasticsearch的安装目录,执行如下命令(windowslinux的斜杠要注意):
./bin/elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-sql/releases/download/6.2.3.0/elasticsearch-sql-6.2.3.0.zip
npm install express --save
node node-server.js
  • elasticsearch-sql的默认端口是8080,可以在site-server/site_configuration.json文件中进行修改 然后 打开 http://localhost:8080/ 访问插件

es sql说明

x-pack-sql

  • es7.x版本的x-pack自带es sql,使用例如
http://localhost:9200/_sql {     "query": "SELECT * FROM article_ik_pinyin" } 

elasticsearch-sql

./elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-sql/releases/download/6.5.4.0/elasticsearch-sql-6.5.4.0.zip 
  • 使用
l/releases/download/6.5.4.0/elasticsearch-sql-6.5.4.0.zip 
  • 使用
    curl -X GET "localhost:9200/_sql" -H 'Content-Type: application/json' -d'select * from ar
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

全栈程序员

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值