启动es服务
//进入解压目录
cd elasticsearch-5.5.0
//启动命令
./bin/elasticsearch
验证es是否启动成功
open http://localhost:9200/
//启动成功将看到如下结果
{
"name" : "6UQG7rF",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "zyRS_VsXSh60pCuohf0Z2g",
"version" : {
"number" : "5.5.0",
"build_hash" : "260387d",
"build_date" : "2017-06-30T23:16:05.735Z",
"build_snapshot" : false,
"lucene_version" : "6.6.0"
},
"tagline" : "You Know, for Search"
}
启动head插件
//进入插件目录
cd elasticsearch-head
//启动
npm run start
验证head启动成功
//在浏览器中打开
open http://localhost:9100