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/ 查看。

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-02-08
  • 2022-02-26
  • 2021-07-28
  • 2021-08-22
  • 2021-11-08
猜你喜欢
  • 2021-08-13
  • 2021-07-11
  • 2022-02-02
  • 2022-03-07
  • 2022-02-18
  • 2021-12-31
  • 2022-03-04
相关资源
相似解决方案