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.

最新文章

  1. 删除win7远程桌面历史记录
  2. 深入理解PHP内核(四)概览-PHP脚本的执行
  3. 基于Metronic的Bootstrap开发框架经验总结(1)-框架总览及菜单模块的处理
  4. ACM/ICPC 之 模拟 (HNUOJ 13391-换瓶模拟)
  5. 减少图片HTTP 请求的方案
  6. 配置hadoop-1.2.1出现localhost: Error: JAVA_HOME is not set.
  7. Sublime Text 2 配置及其使用
  8. Git客户单for Windows
  9. PIL库 (Pillow)
  10. hdu 5500 Reorder the Books(规律)
  11. Linux Howto
  12. 二、spark入门之spark shell:文本中发现5个最常用的word
  13. JS中的Undefined和Null的区别
  14. pytorch, LSTM介绍
  15. cin.get();cin.clear();cin.sync()
  16. 常用的settings.xml文件
  17. AST的作用
  18. pip 解决下载包速度慢的问题
  19. 剑指offer(34)第一个只出现一次的字符
  20. PHP钩子的简单介绍

热门文章

  1. stylus笔记(三)
  2. 修改PL/ORACLE字符编码集
  3. 从Excel、CSV文件获取数据
  4. Win10系列:C#应用控件进阶3
  5. unity5.x中的关节和布料
  6. 对聊天室项目的NABCD的分析
  7. js对json字符串和json对象的转换
  8. Qml和C++开发的学生信息管理软件一
  9. UVALive5966(bfs)
  10. Python 使用sys.exc_info自己捕获异常详细信息