首页 > 技术文章 > Elasticsearch 启动外网访问

myeln 2021-02-09 15:00 原文

linux 不能使用root用户

 

su elasticsearch

cd bin/

sh elasticsearch -d

 

外网访问

 

vi config/elasticsearch.yml

添加一行:

network.host: 0.0.0.0

 

vi /etc/sysctl.conf

添加一行:

vm.max_map_count = 655360

查看是否生效

sysctl -p

 

编辑 /etc/security/limits.conf,追加以下内容;
* soft nofile 65536
* hard nofile 65536
此文件修改后需要重新登录用户,才会生效

 https://blog.csdn.net/wd2014610/article/details/89532638

推荐阅读