安装包下载地址:下载中心 - Elastic 中文社区
系统级配置:
使用root登录,配置limits.conf
vi /etc/security/limits.conf 然后添加如下内容: 注意*不要去掉了 * soft nofile 65536 * hard nofile 131072 注:* 代表Linux所有用户名称(比如 hadoop) 需要保存、退出、重新登录才可生效。
使用root登录,配置sysctl.conf,配置对应的虚拟内存大小
vi /etc/sysctl.conf vm.max_map_count=655360
然后执行:sysctl -p,刷新配置信息
jvm.options配置最大可使用内存:
-Xms8g -Xmx8g
elasticsearch.conf配置
集群配置 cluster.name: dengta-information node.name: node-1 network.host: 192.168.2.47 http.port: 9200 cluster.initial_master_nodes: ["node-1"] #用户密码输入配置 http.cors.enabled: true http.cors.allow-origin: "*" http.cors.allow-headers: Authorization xpack.security.enabled: true xpack.security.transport.ssl.enabled: true
启动es服务
./elasticsearch -d
密码配置:
$ ./bin/elasticsearch-setup-passwords interactive You will be prompted to enter passwords as the process progresses. Please confirm that you would like to continue [y/N] y Enter password for [elastic]: Reenter password for [elastic]: Enter password for [apm_system]: Reenter password for [apm_system]: Enter password for [kibana]: Reenter password for [kibana]: Enter password for [logstash_system]: Reenter password for [logstash_system]: Enter password for [beats_system]: Reenter password for [beats_system]: Enter password for [remote_monitoring_user]: Reenter password for [remote_monitoring_user]:
安装创建问题:ElasticSearch在linux上安装部署 - socket强 - 博客园



