elasticsearch安装步骤
来源:互联网 发布:js中遍历map对象 编辑:程序博客网 时间:2024/06/06 18:49
1. 准备java运行环境
安装jdk可以参考安装oracle jdk8
2. 下载Elasticsearch安装包
- 地址: https://www.elastic.co/downloads/elasticsearch
- Linux系统: 下载tar.gz格式的包
- windows系统:下载zip格式的包
- 命令行下载安装包:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.tar.gz
3. 解压
tar -zxvf elasticsearch-5.4.0.tar.gz
解压后各个目录的介绍
- bin: 可执行文件、启动脚本目录
- config: 配置文件目录
jvm.options: 设置jvm参数
log4j.properties: log4j的配置 - lib: elasticsearch依赖的jar包
- modules: elasticsearch的模块
- plugin: 插件目录
4. 运行
更改elasticsearch目录的所有者
sudo chown -R liu elasticsearch-5.4.0
执行启动脚本
./bin/elasticsearch
加-d后可以后台运行
./bin/elasticsearch -d
启动后报错
提示:
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error=’Cannot allocate memory’ (errno=12)
说明jvm内存分配失败,虚拟机机内存不足。
打开config目录下的jvm.options文件。
将图中的
-Xms2g
-Xmx2g
修改成
-Xms512m
-Xmx512m
5. 使用curl访问 访问9200端口
curl localhost:9200
返回结果:
{ "name" : "OTzYuWn", "cluster_name" : "elasticsearch", "cluster_uuid" : "VcybxVaxRGirUaHPubq2ew", "version" : { "number" : "5.4.0", "build_hash" : "780f8c4", "build_date" : "2017-04-28T17:43:27.229Z", "build_snapshot" : false, "lucene_version" : "6.5.0" }, "tagline" : "You Know, for Search"}
阅读全文
1 0
- elasticsearch安装步骤
- elasticsearch安装的步骤
- ElasticSearch的IK安装步骤
- mac安装elasticsearch详细步骤
- mac安装elasticsearch详细步骤
- Elasticsearch5、Elasticsearch-head安装步骤
- Elasticsearch安装步骤及问题记录
- elasticsearch集群的详细安装步骤
- centos7下elasticsearch安装以及elasticsearch的中文分词插件ik的安装步骤
- centos7下elasticsearch安装以及elasticsearch的中文分词插件ik的安装步骤
- 安装elasticsearch-1.7.2和插件的操作步骤
- linux上安装启动elasticsearch-5.5.1完整步骤
- Linux 安装Elasticsearch和配置ik分词器步骤
- elasticsearch 集群搭建步骤
- elasticsearch整合hbase步骤
- 安装elasticsearch
- elasticsearch安装
- elasticsearch安装
- Pat(A) 1094. The Largest Generation (25)
- activiti学习--05流程实例:部署流程定义+部署流程定义+查询当前人的个人任务+完成我的任务
- Linux 网络配置文件笔记
- ubuntu 常见错误
- bzoj 3110: [Zjoi2013]K大数查询(树套树)
- elasticsearch安装步骤
- LeetCode
- 用多种方法交换两个数的值(转载)
- 使用过滤器实现判断session
- LR和SGD对比学习乳腺癌肿瘤数据集
- 几个主要的期刊杂志
- 二叉树中的最大路径和-LintCode
- Day-02
- 2018届校招Andoid开发工程师总结--准备工作