下载es
下载地址:Elasticsearch:官方分布式搜索和分析引擎 | Elastic
本文针对windows版本。
运行elasticsearch.bat启动es:
es启动成功后,在浏览器访问http://localhost:9200/
启动成功!
下载elasticsearch-head
下载地址:https://github.com/mobz/elasticsearch-head
进入目录,打开cmd终端:
1 | npm install -- 安装依赖 |
浏览器访问http://127.0.0.1:9100/,连接es失败。
因为es还需要配置跨域:
进入elasticsearch的config/目录,编辑elasticsearch.yaml
在文件的后面添加两行:
1 | http.cors.enabled: true |
重启es、elasticsearch-head
浏览器再次访问http://127.0.0.1:9100/
访问成功!
下载kibana
下载地址:Kibana:数据的探索、可视化和分析 | Elastic
进入kibana的bin/目录,运行kibana.bat
浏览器访问http://localhost:5601/
启动成功!
kibana修改界面语言为中文:
进入kibana的config/目录,修改kibana.yml文件
重启kibana即可。