1.下載安裝包
https://www.elastic.co/cn/downloads/elasticsearch
2.安裝部署
#**********1.解壓*****************
tar -zxvf elasticsearch-7.4.2-linux-x86_64.tar.gz
#*********2.創(chuàng)建啟動用戶es*******************
adduser es
#修改密碼
passwd es
#輸入的密碼會提示不能少于8個字符,并且不能太過簡單(eg:qqq231w2.)
#給es用戶elasticsearch目錄的授權
chown -R es /data/soft/elasticsearch-7.4.2/
#****************3.系統配置*****************
#修改/etc/security/limits.conf配置文件,添加如下兩行代碼
* hard nofile 65536
* soft nofile 65536
#修改/etc/sysctl.conf配置文件
vm.max_map_count = 2621441
#重啟
reboot
#****************4.運行***************
sh /usr/local/elasticsearch-6.0.0/bin/elasticsearch -d