elasticsearch7.x安装问题

1.jdk需要11,系统版本为8:elasticsearch自带jdk,在文件目录下,向bin/elasticsearch加入一行:

export JAVA_HOME=/usr/local/hadoop/elasticsearch-7.9.1/jdk/

 

2.不能用root用户执行elasticsearch:创建用户elasticsearch

adduser elasticsearch

passwd elasticsearch

chown -R elasticsearch elasticsearch-7.9.1

su elasticsearch

./elasticsearch-7.9.1/bin/elasticsearch -d  后台运行。

 

3.创建的elasticsearch用户因为能调用的memory和线程数量不足

vim /etc/security/limits.conf

* soft nofile 65535
* hard nofile 65535
* soft nproc 4096
* hard nproc 4096

vim /etc/sysctl.conf

vm.max_map_count=655360

 vim /etc/security/limits.d/90-nproc.conf

*          soft    nproc     4096
root       soft    nproc     unlimited
* hard nproc 4096

 

4.浏览器打不开ip:9200

vim ./elasticsearch-7.9.1/config/elasticsearch.yml

http.cors.enabled: true
http.cors.allow-origin: "*"
network.host: 0.0.0.0

cluster.initial_master_nodes: ["node-1"]

 service iptables stop 关闭防火墙

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值