1.进入ES 目录---启动ES
elasticsearch.bat
2.cmd 进入head目录---启动head
npm start
3.ES创建索引
PUT http://127.0.0.1:9200/commodity
{ "settings": { "number_of_shards": 3, "number_of_replicas": 2 }}