CentOS6.5安装ElasticSearch6.2.3

1、Elastic 需要 Java 8 环境。(安装步骤:http://www.cnblogs.com/hunttown/p/5450463.html

2、安装包下载:

#官网地址

https://www.elastic.co/downloads/elasticsearch

3、新建用户

Elastic高版本不建议使用root用户

(1)创建elastic用户组

[root@mycentos ~]# groupadd elastic

(2)创建用户elastic

useradd elastic(用户名) -g elastic(组名) -p 123456(密码)

[root@mycentos ~]# useradd elastic -g elastic -p 123456

4、解压安装包

建议将安装包放到/usr/local目录下   .放到新建用户目录下,要不报错    错误: 找不到或无法加载主类 org.elasticsearch.tools.java_version_checker.JavaVersionChecker

[root@mycentos local]# unzip elasticsearch-6.2.3.zip
tar zxvf xxx.gz

5、添加权限

chown -R elastic elasticsearch-6.2.3

6、修改配置文件

(1)ERROR: bootstrap checks failed

memory locking requested for elasticsearch process but memory is not locked

原因:锁定内存失败

解决方案:使用root用户,编辑limits.conf配置文件, 添加如下内容:

[root@mycentos ~]# vim /etc/security/limits.conf

* soft memlock unlimited
* hard memlock unlimited

备注:* 代表Linux所有用户名称,保存、退出、重新登录生效。

(2)ERROR: bootstrap checks failed

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

原因:无法创建本地文件问题,用户最大可创建文件数太小。

解决方案:使用root用户,编辑limits.conf配置文件, 添加如下内容:

[root@mycentos ~]# vim /etc/security/limits.conf

* soft nofile 65536    #软件
* hard nofile 131072 #硬件

(3)max number of threads [1024] for user [es] is too low, increase to at least [2048]

原因:无法创建本地线程问题,用户最大可创建线程数太小

解决方案:使用root用户,进入limits.d目录下,修改90-nproc.conf 配置文件。

[root@mycentos ~]# vim /etc/security/limits.d/90-nproc.conf

soft nproc 1024
#修改为:
soft nproc 4096

(4)max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

原因:最大虚拟内存太小

解决方案:使用root用户下,修改配置文件sysctl.conf

[root@mycentos ~]# vim /etc/sysctl.conf

添加下面配置:

vm.max_map_count=655360

并执行命令生效:

sysctl -p

(5)system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

原因:因为Centos6不支持SecComp

解决方法:在elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在Memory下面:

[root@mycentos config]# vim elasticsearch.yml

bootstrap.memory_lock: false
bootstrap.system_call_filter: false

(6)配置host

[root@mycentos config]# vim elasticsearch.yml

network.host: 0.0.0.0 #所有用户都可以访问
http.port: 9200

7、切换用户

[root@mycentos local]# su elastic

8、启动es

 [elastic@mycentos elasticsearch-6.2.3]$ bin/elasticsearch

后台启动:

[elastic@mycentos elasticsearch-6.2.3]$ bin/elasticsearch -d

[elastic@mycentos elasticsearch-6.2.3]$ bin/elasticsearch &

9、浏览器访问

或者:

安装完毕!

声明:本文仅为作者个人笔记,请勿转载!

CentOS6.5安装ElasticSearch6.2.3的更多相关文章

  1. 【ELK】之Centos6.9_x64安装elasticsearch6.2.1

    1.下载elasticsearch6.2.1 wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.1 ...

  2. Linux环境CentOS6.9安装配置Elasticsearch6.2.2最全详细教程

    Linux环境CentOS6.9安装配置Elasticsearch6.2.2最全详细教程 前言 第一步:下载Elasticsearch6.2.2 第二步:创建应用程序目录 第四步:创建Elastics ...

  3. vmware Centos6.6安装64位

    Centos6.6安装64位 必须开启BIOS中的虚拟化技术 首先开机进入BIOS,一般机器是按F2,我的T420是按F1,然后进入Security,Virtualization,选择Enable即可 ...

  4. Gitlab完美安装【CentOS6.5安装gitlab-6.9.2】

    摘要: 拆腾了几天,终于在今天找到了快速安装Gitlab的方法.CentOS6.5安装gitlab-6.9.2 参考网址:https://gitlab.com/gitlab-org/omnibus-g ...

  5. CentOS6.5安装Tomcat

    安装说明 安装环境:CentOS-6.4 安装方式:源码安装 软件:apache-tomcat-7.0.56.tar.gz 下载地址:http://tomcat.apache.org/download ...

  6. Centos6 yum安装openldap+phpldapadmin+TLS+双主配置

    原文地址:http://54im.com/openldap/centos-6-yum-install-openldap-phpldapadmin-tls-%E5%8F%8C%E4%B8%BB%E9%8 ...

  7. centos6.5安装oracle11g_2

    centos7安装oracle数据库不成功,换成centos6.5安装,可以安装成功,记录一下 安装系统时,主机名如果不是用localhost,安装成功后,要用主机名和ip做映射,修改/etc/hos ...

  8. CentOS6.6安装vmware workstation报错

    本人系统用的是centos6.6,安装了vmware workstation,启动后一直如下图报错,相关内核已经安装了的,哪位前辈如果解决过这样的问题,麻烦指点指点,小弟在此先谢过了.

  9. CentOS6.6安装virtualbox4.1.44

    本人用的是centos6.6,安装了virtualbox 4.1.44,启动后一直如上图报错,哪位前辈如果解决过这样的问题,麻烦指点指点,小弟在此先谢过了.

随机推荐

  1. 虹软2.0 离线人脸识别 Android 开发 Demo

    环境要求1.运行环境 armeabi-v7a2.系统要求 Android 5.0 (API Level 21)及以上3.开发环境 Android Studio 下载地址:https://github. ...

  2. eclipse如何修改android工程的包名?

    在我们android项目开发到一定的程度时由于需要,我们必须修改一下工程的包名,以便更好的发布我们的项目.但是在这个过程中有时候修改好了之后会出现一些错误.下面由小编一步步教你如何更改包名,和解决出现 ...

  3. Servlet工作原理解析 《深入分析java web 技术内幕》第九章

    参考关于servblet的相关文章 侧重概况:https://blog.csdn.net/levycc/article/details/50728921 ibm的相关:https://www.ibm. ...

  4. ubuntu14.04 安装 php Composer时 composer:未找到命令

    在Ubuntu14.04环境下,进行composer安装时,各个方面都很顺利,安装完成后,出现了如下的错误提示: 百思不得其解!本人的环境是Ubuntu14.04 ,安装过程也是严格按照compose ...

  5. HybridStart混合应用开发框架

    转自我的博客,原文地址:http://refined-x.com/2017/06/26/%E5%9F%BA%E4%BA%8EAPICloud%E7%9A%84%E6%B7%B7%E5%90%88%E5 ...

  6. 二叉搜索树的最近公共祖先的golang实现

    给定一个二叉搜索树, 找到该树中两个指定节点的最近公共祖先. 百度百科中最近公共祖先的定义为:“对于有根树 T 的两个结点 p.q,最近公共祖先表示为一个结点 x,满足 x 是 p.q 的祖先且 x ...

  7. Python安装包:协程(gevent)

  8. k8s--如何使用Namespaces

    Namespaces 使用示例 Viewing namespaces Creating a new namespace Deleting a namespace Subdividing your cl ...

  9. centos7下kubernetes(15。kubernetes-外网访问service)

    kubernetes提供了多种类型的service,默认是cluster IP ClusterIP cluster内部IP对外提供服务,只有cluster内的节点和pod可访问,这是默认的servic ...

  10. Spring Security(三十三):10.3 Password Encoding

    Spring Security’s PasswordEncoder interface is used to support the use of passwords which are encode ...