1、启动elasticsearch的主程序[root@wumj1 ~]#/etc/init.d/elasticsearch start2、netstat -antp |grep 9200 #查看elasticsearch端口是否监听 [root@wumj1 ~]# netstat -antp |grep 9200
tcp 0 0 :::9200 :::* LISTEN 4824/java[root@wumj1 ~]# curl http://127.0.0.1:9200/ #使用curl http://127.0.0.1:9200/去测试
{
"name" : "elk-1",
"cluster_name" : "demon",
"cluster_uuid" : "suZ9zVH-QnGZ2-QzQrjADg",
"version" : {
"number" : "5.6.12",
"build_hash" : "cfe3d9f",
"build_date" : "2018-09-10T20:12:43.732Z",
"build_snapshot" : false,
"lucene_version" : "6.6.1"
},
"tagline" : "You Know, for Search"
}3、进入elasticsearch-head目录里面使用npm run start启动插件
[root@wumj1 elasticsearch-head]# pwd
/opt/elasticsearch-head
[root@wumj1 elasticsearch-head]# /opt/node-v6.2.0/bin/npm run start> elasticsearch-head@0.0.0 start /opt/elasticsearch-head
> grunt server? ╢???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????>> Local Npm module "grunt-contrib-jasmine" not found. Is it installed?Running "connect:server" (connect) task
Waiting forever...
Started connect web server on http://localhost:91004、启动kibana服务
[root@wumj1 elasticsearch-head]# /usr/local/kibana/bin/kibana