标签:搜索 start 事先 tle enable bootstrap 启动 java min
1,安装环境查看
2,下载rmp包
下载地址:https://www.elastic.co/cn/downloads 分别下载最新rmp包
elasticsearch-6.2.4.rpm logstash-6.2.4.rpm kibana-6.2.4-x86_64.rpm
下载地址
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.rpm https://artifacts.elastic.co/downloads/logstash/logstash-6.2.4.rpm https://artifacts.elastic.co/downloads/kibana/kibana-6.2.4-x86_64.rpm
3,安装
需要事先安装java
yum -y install java
安装elasticssearch
rpm -ivh elasticsearch-6.2.4.rpm
安装logstash
rpm -ivh logstash-6.2.4.rpm
安装kibana
rpm -ivh kibana-6.2.4-x86_64.rpm
4,配置
修改elasticsearch配置文件/etc/elasticsearch/elasticsearch.yml
cluster.name: myes #集群名字 node.name: node-1 #node名字 path.data: /nas/ELK/es-data #日志数据路径 path.logs: /var/log/elasticsearch #日志路径 bootstrap.memory_lock: false network.host: 192.168.56.12 #本机地址 http.port: 9200 #开启端口9200
修改日志数据文件夹权限(不修改无法启动)
chown -R elasticsearch.elasticsearch /nas/ELK/es-data/
启动
systemctl start elasticsearch systemctl enable elasticsearch
访问测试
搜索测试
curl -i -XGET ‘http://192.168.56.12:9200/_count?‘
安装head插件
参考:ELK(Elasticsearch6.0及其head插件安装)
打开head插入数据
插入后浏览
暂时未做集群
集群健康状态检查
curl -XGET ‘http://192.168.56.12:9200/_cluster/health?pretty=true‘
排错
elasticsearch启动报错
解决办法
修改配置文件/etc/elasticsearch/elasticsearch.yml
bootstrap.memory_lock: false
标签:搜索 start 事先 tle enable bootstrap 启动 java min
原文地址:https://www.cnblogs.com/minseo/p/9117768.html