系统版本:CentOS Linux release 7.4.1708 (Core) 。1C2G 存储:20GB
1、地址:https://www.elastic.co/cn/downloads/elasticsearch
2022-08-26蓝框中对应的下载地址:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.4.0-linux-x86_64.tar.gz
2、解压
tar zvxf elasticsearch-8.4.0-linux-x86_64.tar.gz -C /opt/
cd /opt/
ln -sv elasticsearch-8.4.0 elasticsearch
‘elasticsearch’ -> ‘elasticsearch-8.4.0’
3、创建用户并赋权
不能以root权限启动elasticsearch,否则会报错。
useradd es
chown -R es:es /