首页 > 其他 > 详细

Elasticsearch简单配置

时间:2016-07-30 15:09:48      阅读:323      评论:0      收藏:0      [点我收藏+]

Elasticsearch配置详细和详细描述如下

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

 

在此,对Elasticsearch进行如下简单配置

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

 

查看监听端口

[root@test ~]# netstat -tupln

Active Internet connections (only servers)

Proto Recv-Q Send-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

[root@test ~]#

 

简单测试

[root@test ~]# 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, for Search"

}

[root@test ~]#

 

Over!!


本文出自 “cexpert” 博客,请务必保留此出处http://cexpert.blog.51cto.com/5251990/1831995

Elasticsearch简单配置

原文:http://cexpert.blog.51cto.com/5251990/1831995

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!