Ubuntu环境下手动配置ElasticSearch0.90.5

1 下载elasticsearch-0.90.5

2 修改配置(可选)

修改内存:(可选)

bin/elasticsearch.in.sh中:

ES_MIN_MEM ES_MAX_MEM

修改搜索引擎页面信息:(可选)

config/elasticsearch.yml中:

cluster.name: elasticsearch1.0

node.name: "elasticsearch1.0_Node1"

index.number_of_shards: 10

3 运行

进入bin文件夹, 然后 ./elasticsearch 即可运行

进入:http://localhost:9200/_cluster/health?pretty  来查看是否运行成功

{
  "cluster_name" : "elasticsearch",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 5,
  "active_shards" : 5,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 5
}
//以上信息和你的配置有关,这个是默认配置

4 增加head插件

cd到bin文件夹下,运行命令:plugin -install mobz/elasticsearch-head

安装成功后:plugins目录下会有head的文件夹。

进入:http://localhost:9200/_plugin/head/ 查看。

原文地址:https://www.cnblogs.com/xxx0624/p/4242564.html