elasticsearch 入门安装

第1章 课程介绍

第2章 安装

下载地址 : https://www.elastic.co/cn/downloads/elasticsearch 

报错./bin/elasticsearch-env:行126: 未预期的符号 `<' 附近有语法错误

将./bin/elasticsearch-env 文件第126行修改如下

[2021-01-04T20:01:14,878][WARN ][o.e.c.r.a.DiskThresholdMonitor] [vagrant-centos7] flood stage disk watermark [95%] exceeded on [zQX8acg7QSiu91oP_jZMIg][vagrant-centos7][/home/wwwroot/default/newproject/elasearch/elasticsearch-7.10.1/data/nodes/0] free: 8gb[3.4%], all indices on this node will be marked read-only

参考如下:

https://stackoverflow.com/questions/48119189/elasticsearch-6-index-change-to-read-only-after-few-second

 ElasticSearch常见的报错及解决

2.3插件安装

npm run start  运行elasticsearch-head插件

报错:Exception in thread "main" ElasticsearchParseException[malformed, expected end of settings but encountered additional content starting at line number: [93], column number: [1]]; nested: MarkedYAMLException[expected '<document start>', but found '<block mapping start>'

 in 'reader', line 93, column 1:

    http.cors.enabled: true

    ^

 at [Source: (sun.nio.ch.ChannelInputStream); line: 93, column: 1]]; nested: ParserException[expected '<document start>', but found '<block mapping start>'

 in 'reader', line 93, column 1:

    http.cors.enabled: true

    原因: 原来是 配置前要加个空格

./bin/elasticsearch -d  后台启动elasticsearch

第三章:基础概念

第四章 基本用法

第五章:

1. query

参考: https://www.jianshu.com/p/403c9d5b1463

https://www.jianshu.com/p/7d687c9dba4f

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

lxw1844912514

你的打赏就是对我最大的鼓励

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

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

打赏作者

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

抵扣说明:

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

余额充值