Linux 安装 elasticsearch (配置合集)

下载:  可以找到对应版本

https://www.elastic.co/cn/downloads/past-releases#elasticsearch

安装

下载:

https://cloud.tencent.com/developer/article/1422171 

配置:

https://www.jianshu.com/p/69cef2d62f07

 

错误解决1:

 Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2060255232 bytes for committing reserved memory.
# An error report file with more information is saved as:

 

后台启动:       ./elasticsearch -d 

使用    ps aux|grep elasticsearch     可以查看是否启动 

 

错误解决:

[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

http://www.voidcn.com/article/p-biyeuatu-btx.html

https://www.jianshu.com/p/2285f1f8ec21

https://blog.csdn.net/jiahao1186/article/details/90235771

http://blog.itpub.net/15498/viewspace-2149328/

http://www.manongjc.com/article/17034.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
安装配置 ElasticsearchLinux 上需要以下步骤: 1. 下载 Elasticsearch 安装包 可以从 Elasticsearch 官网下载最新版本的 Elasticsearch 安装包,或者使用命令行工具下载最新版本的 Elasticsearch 安装包。 2. 安装 Elasticsearch 使用以下命令来安装 Elasticsearch: ``` sudo rpm -ivh elasticsearch-7.15.0-x86_64.rpm ``` 3. 启动 Elasticsearch 使用以下命令来启动 Elasticsearch: ``` sudo systemctl start elasticsearch ``` 4. 配置 Elasticsearch 默认情况下,Elasticsearch配置文件位于 /etc/elasticsearch 目录下。您可以编辑该文件以更改 Elasticsearch配置。例如,您可以更改 Elasticsearch 的监听地址、端口和数据目录等。 5. 测试 Elasticsearch 运行以下命令来测试 Elasticsearch 是否正在运行: ``` curl http://localhost:9200/ ``` 如果 Elasticsearch 正在运行,您将看到类似于以下内容的输出: ``` { "name" : "node-1", "cluster_name" : "elasticsearch", "cluster_uuid" : "z8v6_5VpRJ2HvZJ2dXvD6Q", "version" : { "number" : "7.15.0", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "79d65f6e357953a5b3cbcc5e2c7c21073d89aa29", "build_date" : "2021-09-16T03:05:29.143308416Z", "build_snapshot" : false, "lucene_version" : "8.9.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } ``` 这表示 Elasticsearch 正在运行。 6. 设置 Elasticsearch 为系统服务 如果您希望 Elasticsearch 在系统启动时自动启动,可以使用以下命令将其设置为系统服务: ``` sudo systemctl enable elasticsearch ``` 这样,Elasticsearch 将在系统启动时自动启动。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值