在官網(wǎng)下載elastic,路徑:Download Elasticsearch | Elastic
下載后解壓,并打開bin文件雙擊運行elasticsearch.bat文件
?運行后,按快捷鍵ctrl+f出現(xiàn)搜索框,向下搜索是9200
?如果有127.0.0.1.9200就代表可以訪問http://localhost:9200/這個端口
如果沒有就打開config下的elasticsearch.yml文件
找到xpack.security.enabled: true這行,
將其改成xpack.security.enabled: false就可以了。
最后保存,重啟elastic就可以訪問127.0.0.1.9200端口了
文章來源:http://www.zghlxwxcb.cn/news/detail-517808.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-517808.html
到了這里,關(guān)于elastic無法訪問9200原因的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!