CentOS7部署elasticsearch8.5
Posted nagao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7部署elasticsearch8.5相关的知识,希望对你有一定的参考价值。
CentOS7部署elasticsearch8.5
elk与jdk依赖关系 https://www.elastic.co/cn/support/matrix
1.下载安装包
[root@localhost ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.5.3-linux-x86_64.tar.gz
2.解压配置
[root@localhost ~]# tar -xvf /root/soft/elasticsearch-8.5.3-linux-x86_64.tar.gz -C /usr/local/
[root@localhost ~]# cd elasticsearch-8.5.3/
3.修改系统参数
[root@localhost ~]# vim /etc/security/limits.conf * soft nofile 65536 * hard nofile 65536 * soft nproc 65536 * hard nproc 65536
[root@localhost ~]# vim /etc/sysctl.conf
vm.max_map_count = 655360
[root@localhost ~]# sysctl -p
4.创建es用户
[root@localhost ~]# groupadd es
[root@localhost ~]# useradd -g es es
5.修改es配置文件
[root@localhost config]# pwd /usr/local/elasticsearch-8.5.3/config [root@localhost config]# vim jvm.options (修改为自己机器合适的大小) -Xms1g -Xmx1g
[root@localhost config]# vim elasticsearch.yml
cluster.name: es8.5
node.name: node-1
path.data: /usr/local/elasticsearch-8.5.3/data
path.logs: /usr/local/elasticsearch-8.5.3/logs
network.host: 0.0.0.0
http.port: 9200
discovery.seed_hosts: ["192.168.1.80:9300","192.168.1.81:9300","192.168.1.82:9300"]
cluster.initial_master_nodes: ["node-1", "node-2","node-3"]
http.cors.enabled: true
http.cors.allow-origin: "*"
以上是关于CentOS7部署elasticsearch8.5的主要内容,如果未能解决你的问题,请参考以下文章
springboot simple (13) springboot Elasticsearch(Elasticsearch8.5.1)