Elasticsearch初探

Elasticsearch安装

读者可以参考:Downloads Elasticsearch

  1. 下载
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.1.tar.gz
tar -zxvf elasticsearch-6.5.1.tar.gz
cd elasticsearch-6.5.1/
  1. 启动
./bin/elasticsearch

遇到的一些问题:

  • 内存不够,释放无用内存,修改./config/jvm.options
  • 不能使用root账户,新建work账户,修改/etc/sudoers
  • java环境变量

3.查看信息

# 集群信息
http://localhost:9200/
# 所有index
http://localhost:9200/_cat/indices?v
# index下的具体信息
http://localhost:9200/_mapping?pretty=true

Elasticsearch使用

https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html
https://www.elastic.co/blog/a-practical-introduction-to-elasticsearch
http://www.ruanyifeng.com/blog/2017/08/elasticsearch.html

你可能感兴趣的:(Elasticsearch初探)