centos7 安装elasticsearch-7.12.0

下载

https://www.elastic.co/cn/downloads/elasticsearch
在这里插入图片描述

上传压缩文件到/home目录

  • 解压到【/usr/local】
[root@VM-0-13-centos elasticsearch-7.12.0]# tar -zxvf elasticsearch-7.12.0-linux-x86_64.tar.gz -C /usr/local
 目录介绍
	* bin:可执行文件在里面,运行es的命令就在这个里面,包含了一些脚本文件等
	* config:配置文件目录
	* JDK:java环境
	* lib:依赖的jar,类库
	* logs:日志文件
	* modules:es相关的模块
	* plugins:可以自己开发的插件
	* data:这个目录需要自己创建,作为索引目录,mkdir data

在这里插入图片描述

修改配置文件elasticsearch.yml

[root@VM-0-13-centos config]# vim elasticsearch.yml

在这里插入图片描述
– BindTransportException[Failed to bind to 121.5.191.56:[9300-9400]]; nested: BindException[Cannot ass
针对这个错误网上各种解决办法,都是误导人的。常见的错误解决方法是把network.host 改成0.0.0.0或者127.0.0.1等,还有就是改成localhost 虽然能跑起来,但是外网还是不能访问的。

正确的解决办法是改成阿里云服务器的内网ip;记录备忘

# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: my-application
#
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值