参考网站:https://www.elastic.co/guide/en/elasticsearch/reference/8.5/rpm.html#rpm-repo
1.导入Elasticsearch GPG签名密钥
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
2.创建软件源
cat > /etc/yum.repos.d/elasticsearch.repo << EOF [elasticsearch] name=Elasticsearch repository for 8.x packages baseurl=https://artifacts.elastic.co/packages/8.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=0 autorefresh=1 type=rpm-md EOF
3.安装
1.使用上面的软件源进行安装
yum install --enablerepo=elasticsearch elasticsearch
2.离线RPM包安装【离线环境】
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.5.2-x86_64.rpm rpm --install elasticsearch-8.5.2-x86_64.rpm
4.配置开机自启
systemctl daemon-reload systemctl enable elasticsearch.service
5.查看运行是否正常
curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic https://localhost:9200
标签:co,elastic,--,rpm,Elasticsearch,https,Linux,elasticsearch,RPM From: https://www.cnblogs.com/fanqisoft/p/16949774.html