Elasticsearch Simple Configuration

Source: Internet
Author: User

Elasticsearch the configuration details and detailed description are as follows

http://rockelixir.iteye.com/blog/1883373

here, the Elasticsearch make the following simple configuration

cluster.name: es_cluster

node.name: "es1" 

node.master: true 

node.data: true

network.host:192.168.81.128

# network.bind_host: 192.168.81.128

# network.publish_host: 192.168.81.128

Viewing the Listening port

[[email protected]~]# netstat -tupln

ActiveInternet connections (only servers)

Proto Recv-QSend-Q Local Address              Foreign Address    State   PID/Program name

tcp        0     0 0.0.0.0:21                 0.0.0.0:*          LISTEN  15042/vsftpd

tcp        0     0 0.0.0.0:22                 0.0.0.0:*          LISTEN  1422/sshd

tcp        0     0 127.0.0.1:25               0.0.0.0:*          LISTEN  1501/master

tcp        0     0 ::ffff:192.168.81.128:9200 :::*               LISTEN  15622/java

tcp        0     0 ::ffff:192.168.81.128:9300 :::*               LISTEN  15622/java

tcp        0     0 :::22                      :::*               LISTEN  1422/sshd

tcp        0     0 ::1:25                     :::*               LISTEN  1501/master

[[email protected]~]#

Simple test

[[email protected]~]# curl http://192.168.81.128:9200

{

  "name" : "es1",

  "cluster_name" :"es_cluster",

  "version" : {

    "number" : "2.3.4",

    "build_hash" :"e455fd0c13dceca8dbbdbb1665d068ae55dabe3f",

    "build_timestamp" :"2016-06-30T11:24:31Z",

    "build_snapshot" : false,

    "lucene_version" :"5.5.0"

  },

  "tagline" : "You Know, forSearch"

}

[[email protected]~]#

Over !!


This article is from the "Cexpert" blog, make sure to keep this source http://cexpert.blog.51cto.com/5251990/1831995

Elasticsearch Simple Configuration

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.