一、安装elasticsearch
获取elasticsearch的rpm:wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.1.rpm
具体版本在es官网获取:https://www.elastic.co/downloads/past-releases
二、yum安装
yum -y install elasticsearch-6.4.1.rpm
三、配置
vim /etc/elasticsearch/elasticsearch.yml
具体配置项可以参考es文档:https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
四、如果安装在虚拟机上,本地机可通过网络转发访问es
五、配置完后,开启es
systemctl start elasticsearch,即可通过http://127.0.0.1:9200访问es
原文地址:https://www.cnblogs.com/zhengchuzhou/p/9680231.html
时间: 2024-10-21 06:50:34