elasticsearch 6.0安装手册
来源:互联网 发布:js 数字比大小 编辑:程序博客网 时间:2024/05/29 07:55
1、下载JAVA环境:JAVA官网环境
2、解压安装
rpm -aq |grep Java //查看安装了哪些java
rpm -e javaXXXXXXX //卸载对应之前过期版本java
rpm -e --nodeps java_cup-0.10k-5.el6.x86_64 //没法卸载的忽略
rpm -ivh java.1.8 //安装1.8java版本
3、配置环境
export JAVA_HOME=/usr/java/jdk1.8.0_151export JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexport PATH=${JAVA_HOME}/bin:${PATH}
4、下载ES6.0
5、解压ES后修改config下的配置文件elasticsearch.yml
cluster.name: dh-esnode.name: dh-01#node.attr.rack: r1path.data: /home/ssd/datapath.logs: /home/logsbootstrap.memory_lock: falsebootstrap.system_call_filter: falsenetwork.host: 102.0.0.1http.port: 8200discovery.zen.ping.unicast.hosts: ["102.0.0.1", "102.0.0.2","102.0.0.3"]http.cors.enabled: truehttp.cors.allow-origin: "*"http.cors.allow-headers: "X-Requested-With,Content-Type, Content-Length, Authorization"
6、配置es运行内存:
-Xms32g
-Xmx32g
7、使用GIT下载head插件
git clone git://github.com/mobz/elasticsearch-head.git8、下载NODEJS下载地址,解压、配置环境
9、安装head-server插件和IK插件
(踩坑记录,由于elasticsearch6.0只支持head的 "Content-Type:application/json"的请求,所以导致安装好之后的测试难度增加,通过curl命令只能在上面再增加--header "Content-Type:application/json"之后才能请求,然后head-server请下载社区最新版本,其中已经为大家修改了这个问题,在
/src/app/services/cluster/cluster.js中,修改了请求方式,新增 contentType: "application/json;charset=UTF-8",的代码)
10、新建索引
curl -XPUT http://xxxxx:9300/index{"acknowledged":true,"shards_acknowledged":true,"index":"index"}
11、配置分词
curl -XPOST 'http://localhost:9200/index/fulltext/_mapping' -d'{ "properties": { "content": { "type": "text", "analyzer": "ik_max_word", "search_analyzer": "ik_max_word" } } }'
阅读全文
0 0
- elasticsearch 6.0安装手册
- CentOS安装ElasticSearch极简手册
- Elasticsearch 6.0.0 安装问题
- 安装elasticsearch
- elasticsearch安装
- elasticsearch安装
- elasticsearch安装
- ElasticSearch安装
- Elasticsearch安装
- Elasticsearch安装
- elasticsearch安装
- elasticsearch安装
- ElasticSearch安装
- elasticSearch安装
- elasticsearch安装
- elasticsearch 安装
- 安装ElasticSearch
- ElasticSearch安装
- 洛谷P2904 [USACO08MAR]跨河River Crossing
- springmvc不进入Controller导致404
- java集合分析(8):AbstractSequentialList
- Java图案绘制
- 异步httpclient---HttpAsyncClient的使用
- elasticsearch 6.0安装手册
- MySQL Galera Cluster 快速删除大表
- ros总线舵机机械臂串口协议源码
- 一例Unable to determine composite primary key ordering for type错误的解决
- RabbitMQ入门教程(三):Hello World
- 回调函数实例
- Codeforces Round #447 (Div. 2) B. Ralph And His Magic Field(数论,组合数学)
- 配置QSslConfiguration让客户端程序跳过本地SSL验证
- Eclipse Indigo Git