一、下载es
二、解压到指定文件夹
三、编辑配置文件elasticsearch.yml
配置个几个关键项
集群名: cluster.name: cluster
节点名:node.name: "xxxx"
节点属性:node.master: true
node.data: true
分片数:index.number_of_shards: 5
防止死锁:bootstrap.mlockall: true
主机地址:network.host: xx.xx.xx.xx
禁用广播方式:discovery.zen.ping.multicast.enabled: false
集群地址:discovery.zen.ping.unicast.hosts:
["XX.xx.xx.xx:9300",XX.xx.xx.xx:9300","XX.xx.xx.xx:9300"]
分词配置:index.analysis.analyzer.ik.type : "ik"(必须有安装ik分词)