es外網無法訪問


在vi config/elasticsearch.yml 中的network下添加如下內容:

network.host: 0.0.0.0

vi /etc/sysctl.conf中增加:

vm.max_map_count=655360

接着執行 sysctl -p

vi /etc/security/limits.conf中(brian為es的啟動賬戶)

brian soft nofile 65536
brian hard nofile 131072
* soft nofile 2048
* hard nofile 131072

kill掉所有es的進程,重啟就行了。再不好就重啟服務器(不建議,個人的到可以)

注意,不能是root賬戶啟動。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM