【ELK】之Centos6.9_x64安装elasticsearch6.2.1
1、下载elasticsearch6.2.1
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.1.tar.gz
2、解压安装
3、启动
因为es为防止远程执行一些脚本,所以启动需要建立一个新的grouop 和user
直接进入bin目录启动
./elasticsearch -d 后台启动
可能出现的问题,
seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
vim /etc/security/limits.conf,在文件最后加上
* soft nproc * hard nproc * soft nofile * hard nofile
[2]: max number of threads [1024] for user [es] is too low, increase to at least [4096]
vim /etc/security/limits.d/90-nproc.conf
* soft nproc
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
vim /etc/sysctl.conf ,在文件最后面加上
vm.max_map_count=
使用docker 启动 es6.6.2
总是报下面错误,修改各种系统参数都不行
使用如下命令即可。
docker run --name es2 --ulimit nofile=: -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "bootstrap.memory_lock=false" \
-e "bootstrap.system_call_filter=false" -e "network.host=0.0.0.0" -e "http.cors.enabled=true" -e http.cors.allow-origin="*" -p : -p : -d elasticsearch:6.6.
最新文章
- 删除win7远程桌面历史记录
- 深入理解PHP内核(四)概览-PHP脚本的执行
- 基于Metronic的Bootstrap开发框架经验总结(1)-框架总览及菜单模块的处理
- ACM/ICPC 之 模拟 (HNUOJ 13391-换瓶模拟)
- 减少图片HTTP 请求的方案
- 配置hadoop-1.2.1出现localhost: Error: JAVA_HOME is not set.
- Sublime Text 2 配置及其使用
- Git客户单for Windows
- PIL库 (Pillow)
- hdu 5500 Reorder the Books(规律)
- Linux Howto
- 二、spark入门之spark shell:文本中发现5个最常用的word
- JS中的Undefined和Null的区别
- pytorch, LSTM介绍
- cin.get();cin.clear();cin.sync()
- 常用的settings.xml文件
- AST的作用
- pip 解决下载包速度慢的问题
- 剑指offer(34)第一个只出现一次的字符
- PHP钩子的简单介绍