准备阶段
6.0以上版本需要jdk1.8,自行安装
wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.0.0-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.0.tar.gz
wget https://artifacts.elastic.co/downloads/logstash/logstash-6.0.0.tar.gz
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.0.0-linux-x86_64.tar.gz
安装Elasticsearch
1、解压
tar -zxvf elasticsearch-6.0.0.tar.gz
2、配置
修改/elasticsearch-6.3.0/config下的配置文件
vi elasticsearch.yml
-
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#这里设置成localhost则只能用http://localhost:9200访问,若虚拟机和主机ip不一样,则无法访问虚拟机上的es
#设置成192.168.0.102这种局域网ip则可在局域网内通过http://192.168.0.102这个地址访问
#楼主这里是dhcp动态ip所以直接设置成0.0.0.0可以方便的供其他机器访问
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
http.port: 9200
3、启动
sh /home/canthn