CentOS6.5安装ElasticSearch6.2.3
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.ziptar 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.confsoft 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.ymlbootstrap.memory_lock: false bootstrap.system_call_filter: false
(6)配置host
[root@mycentos config]# vim elasticsearch.ymlnetwork.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、浏览器访问
或者:
安装完毕!
转载于:https://www.cnblogs.com/bigben0123/p/10102438.html
CentOS6.5安装ElasticSearch6.2.3相关推荐
- centos6.x 安装elasticsearch6.x步骤
1: 增加用户 # 增加用户 useradd -d /home/test -m test # 设置密码 passwd test 2:使用root用户上传es安装包并解压 # 解压 tar -zxvf ...
- Linux环境CentOS6.9安装配置Elasticsearch6.2.2最全详细教程
Linux环境CentOS6.9安装配置Elasticsearch6.2.2最全详细教程 前言 第一步:下载Elasticsearch6.2.2 第二步:创建应用程序目录 第四步:创建Elastics ...
- centos6一键安装vsftpd脚本
centos6一键安装vsftpd脚本 手动安装vsftpd参考教程:Centos下安装Vsftpd的图文教程 vsftpd脚本功能: 1.安装 (命令执行:sh xxx.sh)2.添加ftp用户 ( ...
- linux卸载hadoop版本,centos6.5 安装hadoop1.2.1的教程详解【亲测版】
本篇只简单介绍安装步骤 1. 角色分配 10.11.84.4 web-crawler--1.novalocal master/slave 10.11.84.5 web-crawler--2.noval ...
- Windows下安装ElasticSearch6.3.1以及Head插件
2019独角兽企业重金招聘Python工程师标准>>> es5以上版本安装head需要安装node和grunt(之前的直接用plugin命令即可安装) 安装ElasticSearch ...
- Centos7上安装 elasticsearch-6.2.2及相关插件
原文地址 elasticsearch是一个开源的搜索服务器,提供了一个分布式多用户能力的全文搜索引擎,下面是我的安装笔记 准备工作 java版本 jdk版本必须是1.8及1.8以上 [root@loc ...
- centos6.8 安装nginx
centos6.8 安装nginx需要编译nginx源码,不过没啥大不了的,按照步骤来,肯定能成功. 1.安装必要的依赖: yum install -y gcc-c++yum install -y p ...
- centos6.8安装 gitlab 9.3.5及使用
centos6.8安装 gitlab 9.3.5及使用 环境准备: [root@caosm03 conf]# cat /etc/issue CentOS release 6.8 (Final) Ker ...
- Centos6.6安装zabbix server 3.2
2019独角兽企业重金招聘Python工程师标准>>> Centos6.6安装zabbix server 3.2 mysql,php,tengine 安装包和表分区脚本下载:http ...
最新文章
- php 请求方式,PHP发起HTTP请求有哪几种方式?
- bilibili怎么设置弹幕数量_python爬取B站视频弹幕分析并制作词云
- 用原生JavaScript实现图片瀑布流的浏览效果
- Mybatis使用generator自动生成映射配置文件信息
- jQuery快速复习
- Convex Hull (ACM-ICPC 2018 沈阳赛区网络预赛) 存个公式
- 大公司里怎样开发和部署前端代码?
- mysql设置用户权限
- python系统下载-pythonox下载
- mysql 客户端乱码_mysql客户端中文乱码
- VC++实现ip数据包分析
- Flutter入门(1)—环境配置
- 【数码管识别】感兴趣区域提取和缩放的顺序问题
- mycat-mysql读写分离
- 使用Elasticsearch聚合搜索进行数据的分类统计
- jetbrain account不能访问的问题
- Python多线程抓取网页图片地址
- cairo显示多行文本
- 机器学习中的数学——拟牛顿法(Quasi-Newton Methods)
- 题目1:输入两个整数A和B,输出它们的和。
热门文章
- Npgsql使用入门(三)【批量导入数据】
- CSS3实现一束光划过图片、和文字特效
- php安装编译时 configure: error: Cannot find OpenSSL's evp.h
- famous javascript library.
- 妈的我好像发现是哪出问题了
- 阿里云日志添加要查询字段
- spring cloud(九):各组件常用配置参数
- java: cannot execute binary file 如果遇到这个错,一般是操作系统位数出问题了。
- 我在全球最大的同性社交平台那点事
- (旧)子数涵数·C语言——条件语句