在路径D:\soft下放置json数据文件posts.json 在D:\soft>下执行命令 curl -XPOST "http://localhost:9200/posts" -d @posts.json