首页 > 系统相关 >CentOS7部署elasticsearch8.5

CentOS7部署elasticsearch8.5

时间:2023-01-10 17:25:34浏览次数:61  
标签:elasticsearch8.5 node 8.5 部署 CentOS7 elasticsearch es root localhost

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: "*"

 

标签:elasticsearch8.5,node,8.5,部署,CentOS7,elasticsearch,es,root,localhost
From: https://www.cnblogs.com/haoee/p/17040835.html

相关文章