使用的 elasticsearch-head docker 可以連接配接 es 但是檢視索引資訊傳回
{“error”:“Content-Type header [application/x-www-form-urlencoded] is not supported”,“status”:406}
修改辦法:
1.登入到容器中
docker exec -it 編号 bash
cd /usr/src/app/_site
#需要對vendor.js 進行修改,發現沒有 vim
#需要對 vim 進行安裝,可以執行以下指令:
apt-get update
apt-get install vim
vim vendor.js
/application