ES安装
1.安装 https://www.elastic.co/cn/downloads
先安装 elasticsearch
在安装 kibana
再在github上 elasticsearch-head
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
npm run start
open http://localhost:9100/
2.下载解压,进入bin目录访问.bat文件直接启动
3、无法启动配置几行(配置文件config/elasticsearch.yml),windows环境,单台服务器,单结点;(linux继续学习中)
network.host: 0.0.0.0 //服务端ip
http.port: 9220 //启动端口
discovery.seed_hosts: ["127.0.0.1"] //配置为本机
xpack.security.enabled: false //因为是单结点,所以不需要启动安全验证
discovery.type: single-node //单结点
4.查找ES进程 ps -ef | grep elastic 5.杀掉ES进程 kill -9 1501(进程号) 6.重启ES elasticsearch -d (常驻) 然后使用./bin/elasticsearch -d 后台启动elasticsearch,去掉-d则是前端启动elasticsearch