CentOS7离线安装ES elasticsearch-5-5-2

ES的安装

  1. 下载对应的安装包
    CentOS7离线安装ES elasticsearch-5-5-2_第1张图片
  2. ES需要JDK的支持,安装前请确认JDK版本
java -version

494c3a3e571d1d753f6f003fa2a10cb.png
3. 安装ES

rpm -ivh elasticsearch-5.5.2.rpm 

CentOS7离线安装ES elasticsearch-5-5-2_第2张图片
4. 启动es

systemctl daemon-reload
systemctl enable elasticsearch.service
systemctl start elasticsearch.service
  1. 配置es
vim /etc/elasticsearch/elasticsearch.yml

CentOS7离线安装ES elasticsearch-5-5-2_第3张图片
6. 重启es

systemctl restart elasticsearch.service
  1. 验证是否成功
curl -XGET "192.168.111.18:9200"

CentOS7离线安装ES elasticsearch-5-5-2_第4张图片

ip 应用 端口
192.168.111.15 GitLab 80
192.168.111.15 MySQL 3306
192.168.111.16 Redis 6379(还未部署)
192.168.111.17 kafka 9092(还未部署)
192.168.111.18 ES 9200

你可能感兴趣的:(Linux下中间件安装,elasticsearch,es,centos)