安装java1.8
- 详见:http://www.cnblogs.com/cgyqu/p/7271480.html
安装es
cd /usr/local
mkdir elasticsearch
cd elasticsearch
wget https:
//artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.1.rpm
- rpm -ivh elasticsearch-5.5.0.rpm
配置es
- cd /etc/elasticsearch
vi elasticsearch.yml
将配置修改如下:
配置
firewall-cmd --add-port=9200/tcp --permanent 开放端口
-
firewall-cmd --reload 重启防火墙
- systemctl enable elasticsearch 开机启动
- systemctl start elasticsearch 启动es服务
-
systemctl status elasticsearch 查看服务状态
- curl localhost:9200
执行到最后一步,如果返回以下信息,则说明安装成功