原本想用独立模式,最后没部署成功,后面替换成fleet模式,测试时与独立模式也混合测试了下
版本选择
Es8.5.3 kibana8.5.3 centos7.9
部署es8.5.3
#单机没有部署成功,所有换成集群
#修改es默认环境
#修改文件打开数,需要重新切换用户进入才生效
vim /etc/security/limits.conf
* soft nofile 655350
* hard nofile 655350
* soft nproc 4096
* hard nproc 4096
vim /etc/sysctl.conf
vm.max_map_count = 655350
#执行以下命令进行生效
sysctl -p
#关闭防火墙
systemctl stop firewall
systemctl disable firewall
#下载文件
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.5.3-linux-x86_64.tar.gz
#解压
tar zxvf elasticsearch-8.5.3-linux-x86_64.tar.gz
#证书部分,只需要在第一台服务器上操作即可,其他直接复制过去就可以使用
#生成ca证书
./bin/elasticsearch-certutil ca
默认回车,在elasticsearch-8.5.3生成elastic-stack-ca.p12
#用ca证书生成节点证书
./bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12
默认回车,在elasticsearch-8.5.3生成elastic-certificates.p12
#生成http证书
./bin/elasticsearch-certutil http
默认回车,在elas

8482

被折叠的 条评论
为什么被折叠?



