本文共 1033 字,大约阅读时间需要 3 分钟。

tar -zxvf elasticsearch-7.4.2-linux-x86_64.tar.gz
mv elasticsearch-7.4.2 /usr/local/
cd /usr/local/elasticsearch-7.4.2/mkdir datacd config 
vim elasticsearch.yml

vim jvm.options


useradd esuser给es文件夹授权, 让新用户可以使用:
chown -R esuser /usr/local/elasticsearch-7.4.2chown -R esuser:esuser /usr/local/elasticsearch-7.4.2 
cd bin/su esuser./elasticsearch
su rootvim /etc/security/limits.conf 
* soft nofile 65535* hard nofile 131072* soft nproc 2048* hard nproc 4096
vim /etc/sysctl.conf 
vm.max_map_count=262145
sysctl -psu esuser./elasticsearch 

./elasticsearch -d

chown -R esuser:esuser /usr/local/elasticsearch-7.4.2
转载地址:http://bhyk.baihongyu.com/