Elasticsearch集群部署
安装
①由于Elasticsearch不支持root用户方式启动服务,因此在安装之前必须创建非root账户,这里小编使用Elsasticsearch作用部署和启动账户
[root@st01 ~]# groupadd elasticsearch
[root@st01 ~]# useradd elasticsearch -g elasticsearch
②修改/etc/sysctl.conf配置文件,添加如下配置,然后执行sysctl -p
[root@st01 ~]# cat /etc/sysctl.conf
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
vm.max_map_count=262144
kernel.sysrq=0
net.ipv4.ip_forwa
|