elasticsearch-5.6.12 单点安装包括 HEAD插件安装
环境
Linux version 3.10.0-693.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Aug 22 21:09:27 UTC 2017
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
安装包
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.12.zip
JDK的安装不在本文描述
1.解压缩安装包
unzip elasticsearch-5.6.12.zip
若提示错误,安装 unzip
yum install unzip
2.移动解压缩包
mv ./elasticsearch-5.6.12 /usr/local/es
3.切换目录
cd /usr/local/es
4.创建用户及用户组
groupadd elsearch
useradd elsearch -g elsearch
5.创建数据及日志目录
mkdir /usr/local/es/data
mkdir /usr/local/es/logs
chown -R elsearch:elsearch /usr/local/es
6.vi elasticsearch.yml
修改如下,IP地址请自行修改。
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: my-application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /usr/local/es/data
#
# Path to log files:
#
path.logs: /usr/local/es/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
#discovery.zen.ping.unicast.hosts: ["host1", "host2"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
#
#discovery.zen.minimum_master_nodes: 3
#
# For more information, consult the zen discovery module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
7.运行
/usr/local/es/bin/elasticsearch
报错
[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]
处理
sysctl -w vm.max_map_count=262144
在 /etc/sysctl.conf文件最后添加一行
vm.max_map_count=262144
错误
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
处理
vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096
错误
[4]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
问题原因:因为Centos6不支持SecComp,而ES5.2.1默认bootstrap.system_call_filter为true进行检测,所以导致检测失败,失败后直接导致ES不能启动
解决
vi elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在Memory下面:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
最终结果图
HEAD插件安装
wget https://github.com/mobz/elasticsearch-head/archive/master.zip
unzip master.zip
rm master.zip
cd elasticsearch-head-master/
错误
[elsearch@dev elasticsearch-head-master]$ npm install
bash: npm: command not found
解决
安装NODEJS
wget https://nodejs.org/dist/v10.15.1/node-v10.15.1-linux-x64.tar.xz
tar -xvf node-v6.10.0-linux-x64.tar.xz /usr/local
cd /usr/local
mv node-v10.15.1-linux-x64 nodejs
ln -s /usr/local/nodejs/bin/npm /usr/local/bin
ln -s /usr/local/nodejs/bin/node /usr/local/bin
安装 grunt
npm install -g grunt -cli
错误
解决
npm install phantomjs-prebuilt@2.1.14 --ignore-scripts
修改配置
vi Gruntfile.js
vi _site/app.js
注:es和head在一台机器安装不要修改
vi ../config/elasticsearch.yml
增加跨域
http.cors.enabled: true
http.cors.allow-origin: "*"
报错
Caused by: java.lang.IllegalArgumentException: Property [elasticsearch.version] is missing for plugin [head]
解决 head插件高版本的es安装不可以放置到plugins中
安装 grunt
npm install -g grunt-cliln -s /usr/local/nodejs/bin/grunt /usr/local/bin/grunt
启动
#临时启动,关闭窗口服务停止
grunt server#永久后台启动
nohup grunt server > head.logs 2>&1 &
exit
效果:
elasticsearch-5.6.12 单点安装包括 HEAD插件安装相关推荐
- Jenkins安装配置及插件安装使用
目录 一.Jenkins安装 Windows下安装: Linux Ubuntu下安装: 二.Jenkins配置及插件安装使用简介 插件安装: 在线安装: 离线安装: 账户安全配置: 三.Jenkins ...
- Sublime Text 3便携版下载安装和常用插件安装--顺便解决报错An error occured installing和no packages available for install
文章目录 Sublime Text 3便携版下载安装和常用插件安装 1.Sublime Text 3便携版下载: 2.sublime 插件控制器(Package Control)安装 2.1离线安装P ...
- linux查看rabbitmq的插件,【linux环境下】RabbitMq的安装和监控插件安装
简介这篇文章主要介绍了[linux环境下]RabbitMq的安装和监控插件安装以及相关的经验技巧,文章约2904字,浏览量445,点赞数5,值得参考! [注意安装过程中,提示某些命令not found ...
- elasticsearch(ES)的安装部署及其插件安装
安装方式 curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.2.tar.gz 或者官网 ...
- VS Code 和 Sublime Text 3 安装及常用插件安装
大家可以加我的个人微信,一起在学习交流群,交流学习,我的微信号:woainivery VS Code 1. Auto Close Tag 自动添加HTML / XML关闭标签 2. Auto Rena ...
- 树莓派3b+家庭nas搭建安装openmediavault必要插件安装采坑
树莓派家庭nas制作openmediavault的坑 文章目录 树莓派家庭nas制作openmediavault的坑 说明 需要准备以下相关材料 成果展示 总结 福利 说明 第一我是自己手动搭建的,从 ...
- redmine3.3.1安装与常用插件安装
redmine安装 环境:CentOS6.7 软件: mysql5.X redmine3.3.1 ruby2.3.1 rubygem2.6.8 nginx1.9.15 安装依赖包: yum -y in ...
- mysql审计插件安装_MySQL审计插件安装使用说明文档--升级版
目的 基于之前设计开发的MySQL审计插件,以及<MySQL审计插件安装使用说明文档>的内容介绍,对完善后的mysql审计插件进行补充和说明.主要对新增内容进行详细说明,进一步完善审计插件 ...
- java插件安装步骤_eclipse插件安装的四种方法
Eclipse插件的安装方法 1.在eclipse的主目录(ECLIPSE_HOME, 比如在我的机器上安装的目录是:D:\eclipse)有一个plugins的目录,这种方法的插件安装非常简单,只要 ...
最新文章
- java 比较器comparator_Java中比较器的使用Compare和Comparator
- OpenCV双目稠密匹配BM算法源代码详细解析
- sample java_从sample来学习Java堆(转)
- 在vue中获取微信支付code及code被占用问题的解决?
- Python subprocess模块
- 基于Spring Cloud实现微服务前后端系统
- OpenCV使用VideoCapture界面读取一系列图像的实例(附完整代码)
- CrudRepository/JpaRepository/PagingAndSortingRepository之间的区别
- 哇靠靠,这也行?零基础DIY无人驾驶小车(三)
- C++利用SOCKET传送文件
- matlab中size(A 2),MATLAB中size(A,2)什么意思
- python下载-【Python下载 官方版】Python 3.8.0-ZOL软件下载
- 面向对象程序设计语言和面向过程程序设计
- java(6)String Builder和String Joiner
- qq空间留言板删除 php,qq批量删除空间留言及说说
- nvidia平台gst-launch-1.0使用记录
- (转) Occlusion Culling(遮挡剔除)
- 【生产优化】基于matlab遗传算法求解帐篷工序问题【含Matlab源码 2145期】
- Firebug网络面板里的两条竖线表示什么?
- 手机产业未来的发展方向
热门文章
- 2018-2019-2 20165234 《网络对抗技术》 Exp5 MSF基础应用
- 省选专练[NOI2008]志愿者招募
- Oracle 拼音码函数
- sql语句,怎么取查询结果的位置
- python __slots__ [转]
- 猎头职位:存储翘首EMC高薪诚聘高级软件工程师SH
- 内卷、996的背后,AI技术该如何服务企业“人、财、物”?
- 招博后,比利时鲁汶大学 A2H 部计算机视觉动物行为分析方向
- 妙笔生花!文字图像图形生成技术研究进展
- 再谈RetinaNet