码迷,mamicode.com
首页 > 其他好文 > 详细

elk之elastic安装

时间:2017-07-06 20:36:56      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:add   打开   down   use   www   system   ase   bootstra   net   

环境:

centos7

jdk8

elasticsearch-5.4.3.tar.gz

1.下载包

https://www.elastic.co/downloads

2.上传并解压包

cd /elk

tar -zxvf elasticsearch-5.4.3.tar.gz -C /elk

技术分享

3.创建用户及组

groupadd elk

useradd -g elk elk

4.变更文件宿主

chown -R elk:elk elasticsearch-5.4.3

5.修改配置文件

vi elasticsearch-5.4.3/config/elasticsearch.yml 

技术分享

技术分享

6.启动

/elk/elasticsearch-5.4.3/bin/elasticsearch

技术分享

可以看到报错了

ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

7. 加大打开文件数的限制(open files)

ulimit -n 可以看到才 1024

ulimit -a

 技术分享

 

 vi /etc/systemd/system.conf

技术分享

重启 reboot

技术分享

生效了。

更改内存

vi /etc/sysctl.conf 

添加 

vm.max_map_count=655360

技术分享

 

 

启动成功

./elasticsearch-5.4.3/bin/elasticsearch

技术分享

 

 查看端口,正常

netstat -anp|grep 9200

telnet 192.168.158.128 9200 正常

技术分享

 

elk之elastic安装

标签:add   打开   down   use   www   system   ase   bootstra   net   

原文地址:http://www.cnblogs.com/yun965861480/p/7127709.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!