下載安裝包
elasticsearch在7.0之后,內置了java環(huán)境,不需要安裝JDK。
安裝包下載地址:https://www.elastic.co/cn/downloads/elasticsearch
運行
下載后解壓壓縮包,進入bin目錄,雙擊elasticsearch.bat運行??吹饺鐖D字樣即為運行成功。
打開瀏覽器,訪問localhost:9200,出現(xiàn)如下圖所示,即為成功。
localhost:9200無法訪問問題解決
安裝并且成功運行后發(fā)現(xiàn),localhost:9200無法訪問,經(jīng)過查詢發(fā)現(xiàn)是因為開啟了ssl認證,在 /config/elasticsearch.yml 文件中把xpack.security.http.ssl:enabled設置成false即可。
xpack.security.http.ssl:
enabled: false
將xpack.security.enabled設置成false可以免登錄
xpack.security.enabled: false
JVM配置在/config/jvm.options,建議Xmx和Xms設置成一樣的。
查看已安裝插件
cmd進bin目錄下,輸入如下命令可以查看已安裝的插件。
elasticsearch-plugin list
輸入install可以安裝插件
elasticsearch-plugin install analysis-icu
localhost:9200/_cat/nodes可以查看當前有哪些節(jié)點在運行。文章來源:http://www.zghlxwxcb.cn/news/detail-407636.html
參考文章
https://blog.csdn.net/LongtengGensSupreme/article/details/127092712
https://blog.csdn.net/nana1253431195/article/details/126359042文章來源地址http://www.zghlxwxcb.cn/news/detail-407636.html
到了這里,關于Elasticsearch安裝與無法訪問問題-學習筆記1的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!