Elasticsearch安装
程序员文章站
2022-07-05 10:35:41
...
环境
系统:CentOS 6.9
软件:elasticsearch-6.1.0.tar.gz
服务器:elk-elasticsearch-1,elk-elasticsearch-2
准备
安装
-
创建用户
# useradd elk
-
安装
# tar -xzvf elasticsearch-6.1.0.tar.gz # mv elasticsearch-6.1.0 /usr/local/elasticsearch # chown -R elk:elk /usr/local/elasticsearch
配置
-
创建文件夹
# mkdir -p /data/elasticsearch/data # mkdir -p /data/elasticsearch/logs # chown -R elk:elk /data/elasticsearch
-
配置
# vim /usr/local/elasticsearch/config/elasticsearch.yml cluster.name: my-elasticsearch-cluster node.name: elk-elasticsearch-1 path.data: /data/elasticsearch/data path.logs: /data/elasticsearch/logs network.host: 0.0.0.0 discovery.zen.ping.unicast.hosts: ["elk-elasticsearch-1", "elk-elasticsearch-2"] bootstrap.system_call_filter: false
-
设置系统参数
# vim /etc/sysctl.conf vm.max_map_count = 655300 # sysctl -p
启动
-
开机启动
# vim /etc/rc.local source /etc/profile su elk -c '/usr/local/elasticsearch/bin/elasticsearch -d'
-
启动
# su - elk $ /usr/local/elasticsearch/bin/elasticsearch -d
服务器elk-elasticsearch-1、elk-elasticsearch-2分别按照以上步骤安装、配置、启动
上一篇: Elasticsearch安装
推荐阅读
-
电脑安装ABBYY FineReader 12提示访问文件被拒绝的解决方法
-
mysql 5.7以上版本安装配置方法图文教程(mysql 5.7.12mysql 5.7.13mysql 5.7.14)
-
Wing FTP Server FTP服务器端中文版安装使用教程
-
Mysql5.7.17 winx64.zip解压缩版安装配置图文教程
-
ie9无法安装怎么解决?ie9无法安装解决图文教程
-
linux下mysql的安装步骤
-
windows系统mysql5.7.18安装图文教程
-
谷歌浏览器(chrome)的免费插件时空隧道安装与使用图文教程
-
详解在React项目中安装并使用Less(用法总结)
-
python3.4+pycharm 环境安装及使用方法