windows安装 Elasticsearch-rtf/head/kibana
elasticsearch-rtf 是elasticsearch的一个中文发行版,目前它最新版本是5.1.1(很久没有跟新版本了)
一、 elasticsearch-rtf 的安装
1.github 搜索 elasticsearch-rtf
2.将它克隆或者直接下载到本地,然后解压
3. 测试运行一下(下面是windows运行)
D:\elasticsearch\elasticsearch-rtf\bin >> elasticsearch.bat(elasticsearch也可以)
[2018-11-28T14:11:06,359][INFO ][o.e.h.HttpServer ] [node-1] publish_address {192.168.1.63:9200}, bound_addresses {[::]:9200}
如果输出上面这个,就代表成功
4. elasticsearch-head在5.x版本之后就被独立出去了,所以需要添加一个配置
a.在elasticsearch-rtf 中的 config 文件中找到 elasticsearch.yml
b. 进入文件,添加下面的参数:
http.cors.enabled : true
http.cors.allow-origin : "*"
node.master : true
node.data : true
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, DELETE
http.cors.allow-headers : "X-Requested-With, Content-Type, Content-Length, X-User"
二、elasticsearch-head 的安装
前置工作:
1.去node.js官网下载 node.js,具体步骤自行百度
2. 然后 将 npm 换成 cnpm(因为npm下载比较慢) 具体百度
正式开始:
1.github 搜索 elasticsearch-head
2.克隆/下载到本地 --> 解压
3. 在命令行进入到它的根目录下,然后运行下面命令
cnpm install
cnpm run start // 运行
Running "connect:server" (connect) task
Waiting forever...
Started connect web server on http://localhost:9100 输出这一段代表成功
三、kibana安装
1.去elastic官网或者百度搜 kibana,进行下载, 这里 它的版本必须同elasticsearch-rtf 版本相同,我这里是5.1.1
2. 下载 --> 解压
3. 进入bin目录,运行
kibana
log [06:14:20.520] [info][status][plugin:kibana@5.1.1] Status changed from uninitialized to green - Ready
log [06:14:20.557] [info][status][plugin:elasticsearch@5.1.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [06:14:20.575] [info][status][plugin:console@5.1.1] Status changed from uninitialized to green - Ready
log [06:14:20.929] [info][status][plugin:timelion@5.1.1] Status changed from uninitialized to green - Ready
log [06:14:20.934] [info][listening] Server running at http://0.0.0.0:5601
log [06:14:20.935] [info][status][ui settings] Status changed from uninitialized to yellow - Elasticsearch plugin is yellow
log [06:14:25.603] [info][status][plugin:elasticsearch@5.1.1] Status changed from yellow to yellow - No existing Kibana index found
log [06:14:27.095] [info][status][plugin:elasticsearch@5.1.1] Status changed from yellow to green - Kibana index ready
log [06:14:27.097] [info][status][ui settings] Status changed from yellow to green - Ready
浙公网安备 33010602011771号