1、先修改Elasticsearch配置文件,增加如下配置
http.cors.allow-origin: "*" http.cors.enabled: true http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization http.cors.allow-credentials: true
2、安裝Docker
用一鍵安裝
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
或
curl -sSL https://get.daocloud.io/docker | sh
3、啟動Docker
systemctl start docker.service
4、安裝dejavu鏡像
docker run -p 1358:1358 -d appbaseio/dejavu
5、在瀏覽器中訪問
http://x.x.x.x:1358/
輸入Elasticsearch的IP端口和索引名稱