1.Elasticsearcch 安装与运行
1.1安装JDk1.8
查看是否安装jdk1.2去elasticsearch官网下载
elsatic stack 官方网站1.3.运行===>bin/elasticsearch
运行bin/elasticsearch2.ElasticSearch 配置说明
2.1相关配置文件说明
2.1.1 elasticsearch.yml =====> es的相关参数
cluster.name 集群名称,以此作为判断是否同一集群的判断条件
node.name 节点名称,以此作为集群中不同节点的区分条件
network.host/http.port 网络地址和端口,用于http和transport服务使用
path.data 数据存储的地址
path.log 日志存储的地址
2.1.2.jvm.options jvm的相关参数
2.1.3.log4j2.properties 日志相关的配置
2.2Elasticsearch 运行模式
Development与Production模式说明
elasticsearch在启动之前,会做一些检查
1.以transport的地址是否绑定在localhost为判断标准network.host
绑定在localhost====>Development
反之,都是Production模式
2.Development模式在启动时会以warning的方式提示配置检测异常
3.Production模式下启动时会以error的方式提示配置检测异常并退出
修改参数的第二种模式
bin/elasticsearch -Ehttp.port=19200
网友评论