(3)安装elastic6.1.3及插件kibana,x-pack,essql,head,bigdesk,cerebro,ik
- 6安装nginx
6.1安装nginx
安装 pcre,zlib,openssl,nginx
6.2生成web访问用户密码
htpasswd –c –b /usr/local/nginx/conf/passwd/kibana.passwd user pass123
6.3 配置代理转发
vim /usr/local/nginx/conf/nginx.conf
#在配置文件末尾追加如下配置
#kibana
server {
listen ;
root /usr/local/nginx/html;
auth_basic "Kibana Auth";
auth_basic_user_file /usr/local/nginx/conf/passwd/kibana.passwd; location / {
proxy_pass http://192.168.1.1:5601;
proxy_redirect off;
} error_page /.html;
location = /40x.html {
} error_page /50x.html;
location = /50x.html {
} }
#cerebro
server {
listen ;
root /usr/local/nginx/html;
auth_basic "Kibana Auth";
auth_basic_user_file /usr/local/nginx/conf/passwd/kibana.passwd; location / {
proxy_pass http://192.168.1.1:9109;
proxy_redirect off;
} error_page /.html;
location = /40x.html {
} error_page /50x.html;
location = /50x.html {
} }
#bigdesk
server {
listen
root /usr/local/nginx/html;
auth_basic "Kibana Auth";
auth_basic_user_file /usr/local/nginx/conf/passwd/kibana.passwd; location / {
proxy_pass http://192.168.1.1:9106;
proxy_redirect off;
} error_page /.html;
location = /40x.html {
} error_page /50x.html;
location = /50x.html {
} }
#head
server {
listen ;
root /usr/local/nginx/html;
auth_basic "Kibana Auth";
auth_basic_user_file /usr/local/nginx/conf/passwd/kibana.passwd; location / {
proxy_pass http://192.168.1.1:9107;
proxy_redirect off;
} error_page /.html;
location = /40x.html {
} error_page /50x.html;
location = /50x.html {
} }
#es-sql
server {
listen ;
root /usr/local/nginx/html;
auth_basic "Kibana Auth";
auth_basic_user_file /usr/local/nginx/conf/passwd/kibana.passwd; location / {
proxy_pass http://192.168.1.1:9108;
proxy_redirect off;
} error_page /.html;
location = /40x.html {
} error_page /50x.html;
location = /50x.html {
} }
6.4配置首页
由于每个插件的端口都不同,不方便访问。自己做了一个首页来访问插件。
修改index.html
vim /usr/local/nginx/html/index.html
<!DOCTYPE html>
<html>
<head>
<title>Elastic-Plugins</title>
<style>
body {
width: 35em;
margin: auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome!</h1> <p>
<a href="http://10.16.29.202:8890">kibana</a>.<br/>
<p>
<a href="http://10.16.29.202:8889">cerebro</a>.<br/>
<p>
<a href="http://10.16.29.202:8888">es-sql</a>.<br/>
<p>
<a href="http://10.16.29.202:8887">head</a>.<br/>
<p>
<a href="http://10.16.29.202:8886">bigdesk</a>.<br/>
<p>
<a href="http://10.16.29.202:8885">HQ</a>.<br/>
</body>
</html>
6.5启动nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
6.6访问nginx主页,使用插件。密码验证:用户user密码pass123

6.7安装遇到问题:
Nginx: error while loading shared libraries: libpcre.so.1解决
解决办法:
http://blog.csdn.net/ystyaoshengting/article/details/50504746
问题分析:
在redhat 64位机器上, nginx可能读取的pcre文件为/lib64/libpcre.so.1文件.
所以需要在/lib64/下建立软连接:
ln -s /usr/local/lib/libpcre.so. /lib64/
- 7x-pack破解
7.1创建LicenseVerifier.java文件
package org.elasticsearch.license;
import java.nio.*;
import java.util.*;
import java.security.*;
import org.elasticsearch.common.xcontent.*;
import org.apache.lucene.util.*;
import org.elasticsearch.common.io.*;
import java.io.*;
public class LicenseVerifier
{
public static boolean verifyLicense(final License license, final byte[] encryptedPublicKeyData) {
return true;
}
public static boolean verifyLicense(final License license) {
return true;
}
}
7.2编译LicenseVerifier.class
javac -cp "/home/ilog/elasticsearch-6.1.3/lib/elasticsearch-6.1.3.jar:/home/ilog/elasticsearch-6.1.3/lib/lucene-core-7.1.0.jar:/home/ilog/elasticsearch-6.1.3/plugins/x-pack/x-pack-6.1.3.jar" LicenseVerifier.java
7.3重新打包x-pack- 6.1.3.jar
解压x-pack/x-pack-6.1.3.jar包,替换jar包中的LicenseVerifier.class文件,重新打包
#创建temp-dir临时目录,解压jar包到临时目录
mkdir temp-jar
cp /home/ilog/elasticsearch-6.1./plugins/x-pack/x-pack-6.1..jar temp-jar
cd temp-jar
jar -xvf x-pack-6.1..jar
rm -rf x-pack-6.1..jar
#拷贝自己创建的class文件到org/elasticsearch/license/目录
cp LicenseVerifier.class org/elasticsearch/license/
#重新打包
jar -cvf x-pack-6.1..jar ./*
#将jar包覆盖到原目录
cp x-pack-6.1.3.jar /home/ilog/elasticsearch-6.1.3/plugins/x-pack/x-pack-6.1.3.jar
7.4重启elastic和kibana
bin/elasticsearch -d
bin/kibana &
7.5创建license文件,并上传(白金版,license到2050年)
vim platimum.json
{"license":{"uid":"e77971c5-c37e-42c8-b622-c22a9f9ee51c","type":"platinum","issue_date_in_millis":,"expiry_date_in_millis":,"max_nodes":,"issued_to":"user123","issuer":"Web Form","signature":"abcdef","start_date_in_millis":}}
7.6登录kibana上传license页面,上传license文件。
license上传地址:http://192.168.1.1:5601/app/kibana#/management/elasticsearch/license_management/upload_license
- 8生产环境没有互联网如何安装elastic插件
遇到的问题:安装npm,grunt需要联网,x-pack安装需要联网。其他都可以离线安装。
解决问题前提条件:有可以上网的测试机器。在测试环境上按以上步骤安装完所有插件
解决办法:
8.1在测试环境安装x-pack后,打包安装x-pack后的elastic目录,放到生产环境使用即可
8.2在测试环境安装node后,打包整个node目录,拷贝到生产环境,配置环境变量,即可使用node和grunt来启动essql和head
(3)安装elastic6.1.3及插件kibana,x-pack,essql,head,bigdesk,cerebro,ik的更多相关文章
- (1)安装elastic6.1.3及插件kibana,x-pack,essql,head,bigdesk,cerebro,ik
1.安装环境及程序版本 操作系统: centos6.7 jdk: 1.8.0_102 elastic: 1.6.3 kibana: 1.6.3 x-pack: 1.6.3 es-sql: 1.6.3 ...
- (2)安装elastic6.1.3及插件kibana,x-pack,essql,head,bigdesk,cerebro,ik
5.2kibana安装 5.2.1解压kibana安装包,修改config/kibana.yml中端口,服务器地址,elastic连接地址 -linux-x86_64.tar.gz cd kibana ...
- aws ec2 安装Elastic search 7.2.0 kibana 并配置 hanlp 分词插件
文章大纲 Elastic search & kibana & 分词器 安装 版本控制 下载地址 Elastic search安装 kibana 安装 分词器配置 Elastic sea ...
- ELK安装和配置及常用插件安装
环境 CentOS 7.3 root 用户 JDK 版本:1.8(最低要求),主推:JDK 1.8.0_121 以上 关闭 firewall systemctl stop firewalld.serv ...
- Sublime Text 2安装汉化破解、插件包安装教程
原文地址: Sublime Text 2安装汉化破解.插件包安装教程_百度经验 http://jingyan.baidu.com/article/ff4116259b057c12e48237b8.ht ...
- eclipse安装Veloeclipse(Velocity编辑插件)
eclipse安装Veloeclipse(Velocity编辑插件) Help-->install new software-->Add 增加 Name:Veloeclipse Value ...
- Windows 10环境安装VIM代码补全插件YouCompleteMe
Windows 10环境安装VIM代码补全插件YouCompleteMe 折腾一周也没搞定Windows下安装VIM代码补全插件YouCompleteMe,今天在家折腾一天总算搞定了.关键问题是在于P ...
- 安装freemarker模板的ftl插件
安装freemarker模板的ftl插件 同意协议 等待运行完成 重新启动eclipse 查看是否生效
- 【工具篇】Sublime Text 2 安装汉化破解、插件包安装教程详解
Sublime Text概述: Sublime Text是一个代码编辑器,也是HTML和散文先进的文本编辑器. 漂亮的用户界面和非凡的功能,例如:迷你地图,多选择,Python插件,代码段等等. 完全 ...
随机推荐
- poium测试库之JavaScript API封装原理
poium一直我在维护的一个开源项目,它的定位是以极简的方式在自动化项目中Page Objects设计模式.我在之前的文章中也有介绍. 本篇文章主要介绍一个JavaScript元素操作的封装原理. 为 ...
- python 24 封装、多态
目录 1. 封装.多态 2. 鸭子类型--Duck typing 3. 类的约束 5. super深度剖析 1. 封装.多态 封装:将代码.数据放入一个容器空间中,并且可以使用. 多态:一个事物可以呈 ...
- runnable和thread实现多线程的区别
下面以典型的买票程序(基本都是以这个为例子)为例,来说明二者的区别. 首先通过继承Thread类实现,代码如下: class MyThread extends Thread{ private int ...
- wait()、notify()方法原理,以及使用注意事项
wait.notify原理 在前面以经说到对象锁的本质,实际上是对象头的一个监视器锁的数据结构.这个结构如下: (图片来源于网络) 几个线程一起竞争对象的锁(enter),只有一个能成功(acquir ...
- Web安全开发规范手册V1.0
一.背景 团队最近频繁遭受网络攻击,引起了部门技术负责人的重视,笔者在团队中相对来说更懂安全,因此花了点时间编辑了一份安全开发自检清单,觉得应该也有不少读者有需要,所以将其分享出来. 二.自检清单 检 ...
- CentOS 7 下 JDK1.8+Maven+Nginx+MySql+Git+Redis环境安装
CentOS 7 下 JDK1.8+Maven+Nginx+MySql+Git+Redis环境安装 安装目录准备 新建data目录,用来放下载的软件 mkdir -p /data 切换到该data目录 ...
- 企业代码版本管理之争:TrunkBased vs GitFlow vs AoneFlow vs OneFlow vs ExeFlow
目录 引言 TrunkBased GitFlow AoneFlow OneFlow ExeFlow 综述 引言 网络上版本管理系统之争持久而喧嚣,依照声量来讲目前应该是Git占了较大的优势.不过我们本 ...
- Navicat for mysql建立连接
1. 安装Navicat for MySQL. 2. 点击连接->MySQL,打开SSH,填写主机名.端口.用户名.密码. 3. 连接->打开常规,设置连接名(可以自由指定).主机名.端口 ...
- luogu- P1373 小a和uim之大逃离 DP 四维,其中一维记录差值
P1373 小a和uim之大逃离: https://www.luogu.org/problemnew/show/P1373 题意: 在一个矩阵中,小A和小B轮流取数,小A可以从任意点先取,小B后取,最 ...
- HDU-3038How Many Answers Are Wrong权值并查集
How Many Answers Are Wrong 题意:输入一连串的区间和,问和前面的矛盾个数: 思路:我在做专题,知道是并查集,可是还是不知道怎么做,学了一下权值并查集和大佬的优秀思路,感觉回了 ...