4.ES 相关插件安装

1. head 插件安装

git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install   //cnpm install
npm run start  // cnpm run start
open http://localhost:9100/

  

2.修改配置,启动插件
	在启动运行前,我们介绍下 Elasticsearch 配置文件,即 config/elasticsearch.yml。
	这里我们需要在配置中增加以下配置,为了允许 elasticsearch-head 运行时的跨域:

	# allow origin
	http.cors.enabled: true
	http.cors.allow-origin: "*"

https://github.com/mobz/elasticsearch-head

 

2.x-pack 安装

        1./usr/share/elasticsearch/bin/elasticsearch-plugin install x-pack  // es 安装 x-pack
	2.重启 es
	3.安装 kibana 
	4.修改 kibana 配置
		server.host: "192.168.0.103"
		elasticsearch.url: "http://192.168.0.103:9200"
		elasticsearch.username: "admin"
 		elasticsearch.password: "123456"
 	5./usr/share/kibana/bin/kibana-plugin install x-pack // kibana 安装 x-pack
 	5.修改 es 密码
 	6.修改 es 配置
 		xpack.security.audit.enabled: true

 	7.修改elastic的密码:
       curl XPUT -u elastic:changeme '192.168.63.246:9200/_xpack/security/user/elastic/_password' -d '{  
         "password" : "123456"
		}'
    
    8.改一下kibana的登录密码
    curl -XPUT -u elastic:123456 '192.168.63.246:9200/_xpack/security/user/kibana/_password' -d '{
  		"password" : "123456"
	}'

 

删除:
bin/elasticsearch-plugin remove x-pack

https://www.elastic.co/guide/en/x-pack/current/xpack-uninstalling.html

 

https://www.jianshu.com/p/a49d93212eca

https://www.elastic.co/guide/en/elasticsearch/reference/6.2/installing-xpack-es.html

https://www.elastic.co/guide/en/x-pack/current/security-getting-started.html

https://www.elastic.co/guide/en/shield/current/kibana.html

https://www.elastic.co/guide/en/x-pack/current/security-trb-roles.html

https://www.elastic.co/guide/en/kibana/6.2/installing-xpack-kb.html

 

 

3.安装 sense 插件

1. ./bin/kibana plugin --install elastic/sense 
2.在你的浏览器中打开 Sense: http://localhost:5601/app/sense 

 

4.ik 安装

ik 插件安装
	1.git clone https://github.com/medcl/elasticsearch-analysis-ik.git

	2.安装 mvn 
		yum install -y mvn

	3.进入下载后的git代码里面,执行mvn package,进行打包
	    mvn package

	4.编译完成后,可以在target/releases目录下找到对应的zip包

	5.解压zip包,复制到elasticsearch-root-path/plugins/ik下即可

	systemctl restart elasticsearch.service

注意 ik 与 es 版本问题。

//指定插件 标准插件
curl -XPOST 'http://192.168.0.105:9200/_analyze?analyzer=standard&pretty'  -H 'Content-Type: application/json' -d "这是一个标题"

//ik插件
curl -XPOST 'http://192.168.0.105:9200/_analyze?analyzer=ik&pretty'  -H 'Content-Type: application/json' -d "这是一个标题"


https://github.com/medcl/elasticsearch-analysis-ik
http://www.cnblogs.com/xing901022/p/5910139.html

 

 

 

 

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值