Elasticsearch Introduction Series (i) what is and how to install and run

Source: Internet
Author: User

first, what is

Elasticsearch is an open source search engine based on Apache Lucene.

Elasticsearch:

Distributed real-time file storage, where each field is used and searchable

Distributed real-time analytics search engine

Can scale to hundreds of servers, processing petabytes of structured or unstructured data

Second, installation

Window environment Download the installation package to extract and execute the Elasticsearch.bat in the bin directory

Under Linux:

      curl -L -O http://download.elasticsearch.org/PATH/TO/VERSION.zip <1>

      unzip elasticsearch-$VERSION.zip

       cd elasticsearch-$VERSION

installing Marvel:marvel is a elasticsearch management and monitoring tool that includes an interactive console called sense that makes it easy for users to interact directly with Elasticsearch through a browser.

./bin/plugin -i elasticsearch/marvel/latest
如果想要禁用监控,可以使用命令:
echo ‘marvel.agent.enabled:false‘ >> ./config/elasticsearch.yml


三、运行

./bin/elasticsearch
If you want to run in background daemon mode, add the-d parameter

See if it's successful
curl ' Http://localhost:9200/?pretty '
return result:
 { "status": 200,  "name":  "shrunken Bones",  "version": { "number":  "1.4.0", " lucene_version ": " 4.10 "}, " tagline ":  "Know, for Search"}              
indicates that it is up and running correctly
四、关闭

curl -XPOST ‘http://localhost:9200/_shutdown‘

五、查看Marvel
http://localhost:9200/_plugin/marvel

Elasticsearch Introduction Series (i) what is and how to install and run

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.