elasticsearch-7.0.0安装和遇到的问题

安装步骤

1.创建用户

[root@localhost bin]# groupadd es
[root@localhost bin]# useradd es -g es
[root@localhost bin]# mkdir -p /usr/local/elasticsearch-7.0.0/
[root@localhost bin]# chown -R es:es /usr/local/elasticsearch-7.0.0/

2.解压缩,启动命令./bin/elasticsearch,后台启动./bin/elasticsearch -d

3.修改conf文件

#cluster.name: my-application   解开屏蔽
#node.name: node-1              解开屏蔽
#network.host: 192.168.0.1      修改:network.host: 0.0.0.0
#http.port: 9200				解开屏蔽
#cluster.initial_master_nodes: ["node-1", "node-2"] 修改:cluster.initial_master_nodes: ["node-1"]

4.访问测试:http://192.168.5.226:9200/

问题1

1.[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

vi /etc/security/limits.conf
[root@localhost pub]# ulimit -Hn
4096
[root@localhost pub]# ulimit -Sn
1024

*               soft    nofile          65536
*               hard    nofile          65536
重新登录

2.[2]: max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]vm.max_map_count:限制一个进程可以拥有的VMA(虚拟内存区域)的数量

vi /etc/sysctl.conf
vm.max_map_count=655360
重新登录

3.[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

cluster.initial_master_nodes: ["node-1"]  替换为对应的node名称
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值