外部無法訪問ES的解決方案:
打開Elasticsearch安裝路徑下config目錄下的elasticsearch.yml文件,加入如下配置:
discovery.seed_hosts: ["host1"]
network.host: 0.0.0.0
?
重新啟動(dòng)ES即可。
PS:如果修改配置文件后,啟動(dòng)報(bào)錯(cuò)max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536],解決方案如下:
編輯 /etc/security/limits.conf,添加以下內(nèi)容;
*?soft?nofile?65536
*?hard?nofile?65536
es?soft?nproc?65536
es?hard?nproc?65536
修改后重新登錄es用戶,啟動(dòng)ES即可文章來源:http://www.zghlxwxcb.cn/news/detail-530000.html
(es用戶是用來啟動(dòng)Elasticsearch的)文章來源地址http://www.zghlxwxcb.cn/news/detail-530000.html
到了這里,關(guān)于外部無法訪問ES的解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!