elasticSearch跨域配置
在elasticSearch.yum文件配置了:
http:cors.enabled: true
http.cors.allow-origin: "*"
?后,執(zhí)行elasticSearch.bat程序,報(bào):unknown setting [http:cors.enabled] did you mean any of [http.cors.enabled, http.enabled]?錯(cuò)誤,不知道是為什么。
在elasticSearch.yum文件配置了:
http:cors.enabled: true
http.cors.allow-origin: "*"
?后,執(zhí)行elasticSearch.bat程序,報(bào):unknown setting [http:cors.enabled] did you mean any of [http.cors.enabled, http.enabled]?錯(cuò)誤,不知道是為什么。
2020-02-14
舉報(bào)
2020-02-29
感謝回復(fù),不過不是因?yàn)檫@種細(xì)節(jié)的問題,而是可能因?yàn)榘姹?lt;6.7.0>的緣故,elasticSearch.yum配置文件某些參數(shù)書寫格式與視頻稍微不一樣所導(dǎo)致的,最終按如下配置解決了我的問題:
http:
????cors:
????????enabled: true
????????allow-origin: "*"?
2020-02-21
“http:cors.enabled: true”http后邊是 【.】不是【:】,同時(shí)還要注意 true前邊是空格