一、ElasticSearch5.6.3下载安装步骤
说明:ElasticSearch的运行不能用root执行,自己用useradd命令新建一个用户如下所示:
useradd chen
passwd chen 然后根据提示输入密码即可
下载地址:https://www.elastic.co/downloads/elasticsearch 下载最新的安装包并解压、然后执行、命令如下:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.3.tar.gz
tar -zxvf elasticsearch-5.6.3
cd elasticsearch-5.6.3
./bin/elasticsearch
执行之前就得修改配置文件:vim config/elasticsearch.yml
vim config/elasticsearch.yml
修改方法参考如下:
cluster.name: elk_test.cluster
node.name: node-01
node.master: true
node.data: true
network.host: 192.168.0.153
http.port: 9200
discovery.zen.ping.unicast.hosts: ["192.168.0.153","192.168.0.154","192.168.0.155"]
#discovery.zen.ping.multicast.enabled: true
discovery.zen.minimum_master_nodes: 2
http.cors.enabled: true
http.cors.allow-origin: "*"
解释说明:
bootstrap.memory_lock: false
b