到官网https://www.elastic.co/cn/downloads/elasticsearch下载压缩包,目前最新的版本是7.3.2,我想下6.5.3,点击下面的past release链接到历史版本:

  找到Elasticsearch 6.5.3后,点击右边Download,在下载页面点击Linux链接开始下载。下完后通过rz上传至wlf用户的soft目录,返回上一层目录解压:

$ cd ..
$ rz -y
rz waiting to receive.
开始 zmodem 传输。 按 Ctrl+C 取消。
% KB KB/s :: Errorss $ cd ..
$ tar xzvf soft/elasticsearch-6.5..tar.gz

  进入解压后目录,启动elasticsearch:

$ cd elasticsearch-6.5./
$ bin/elasticsearch

  这时会出现启动日志:

[--26T15::,][INFO ][o.e.e.NodeEnvironment    ] [E1zoynp] using [] data paths, mounts [[/home (/dev/sdc2)]], net usable_space [123gb], net total_space [.5gb], types [ext3]
[--26T15::,][INFO ][o.e.e.NodeEnvironment ] [E1zoynp] heap size [.8mb], compressed ordinary object pointers [true]
[--26T15::,][INFO ][o.e.n.Node ] [E1zoynp] node name derived from node ID [E1zoynp1TQaPj3a3MALUsA]; set [node.name] to override
[--26T15::,][INFO ][o.e.n.Node ] [E1zoynp] version[6.5.], pid[], build[default/tar/159a78a/--06T20::.826501Z], OS[Linux/3.10.-.el7.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) -Bit Server VM/1.8.0_221/25.221-b11]
[--26T15::,][INFO ][o.e.n.Node ] [E1zoynp] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch.Qae6xuDZ, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=, -XX:GCLogFileSize=64m, -Des.path.home=/home/wlf/elasticsearch-6.5., -Des.path.conf=/home/wlf/elasticsearch-6.5./config, -Des.distribution.flavor=default, -Des.distribution.type=tar]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [aggs-matrix-stats]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [analysis-common]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [ingest-common]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [lang-expression]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [lang-mustache]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [lang-painless]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [mapper-extras]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [parent-join]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [percolator]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [rank-eval]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [reindex]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [repository-url]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [transport-netty4]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [tribe]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-ccr]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-core]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-deprecation]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-graph]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-logstash]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-ml]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-monitoring]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-rollup]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-security]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-sql]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-upgrade]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] loaded module [x-pack-watcher]
[--26T15::,][INFO ][o.e.p.PluginsService ] [E1zoynp] no plugins loaded
[--26T15::,][INFO ][o.e.x.s.a.s.FileRolesStore] [E1zoynp] parsed [] roles from file [/home/wlf/elasticsearch-6.5./config/roles.yml]
[--26T15::,][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [E1zoynp] [controller/] [Main.cc@] controller ( bit): Version 6.5. (Build f418a701d70c6e) Copyright (c) Elasticsearch BV
[--26T15::,][DEBUG][o.e.a.ActionModule ] [E1zoynp] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[--26T15::,][INFO ][o.e.d.DiscoveryModule ] [E1zoynp] using discovery type [zen] and host providers [settings]
[--26T15::,][INFO ][o.e.n.Node ] [E1zoynp] initialized
[--26T15::,][INFO ][o.e.n.Node ] [E1zoynp] starting ...
[--26T15::,][INFO ][o.e.t.TransportService ] [E1zoynp] publish_address {127.0.0.1:}, bound_addresses {[::]:}, {127.0.0.1:}
[--26T15::,][WARN ][o.e.b.BootstrapChecks ] [E1zoynp] max file descriptors [] for elasticsearch process is too low, increase to at least []
[--26T15::,][INFO ][o.e.c.s.MasterService ] [E1zoynp] zen-disco-elected-as-master ([] nodes joined), reason: new_master {E1zoynp}{E1zoynp1TQaPj3a3MALUsA}{qt-wUtPfR5qXa80mnt5mqQ}{127.0.0.1}{127.0.0.1:}{ml.machine_memory=, xpack.installed=true, ml.max_open_jobs=, ml.enabled=true}
[--26T15::,][INFO ][o.e.c.s.ClusterApplierService] [E1zoynp] new_master {E1zoynp}{E1zoynp1TQaPj3a3MALUsA}{qt-wUtPfR5qXa80mnt5mqQ}{127.0.0.1}{127.0.0.1:}{ml.machine_memory=, xpack.installed=true, ml.max_open_jobs=, ml.enabled=true}, reason: apply cluster state (from master [master {E1zoynp}{E1zoynp1TQaPj3a3MALUsA}{qt-wUtPfR5qXa80mnt5mqQ}{127.0.0.1}{127.0.0.1:}{ml.machine_memory=, xpack.installed=true, ml.max_open_jobs=, ml.enabled=true} committed version [] source [zen-disco-elected-as-master ([] nodes joined)]])
[--26T15::,][INFO ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [E1zoynp] publish_address {127.0.0.1:}, bound_addresses {[::]:}, {127.0.0.1:}
[--26T15::,][INFO ][o.e.n.Node ] [E1zoynp] started
[--26T15::,][WARN ][o.e.x.s.a.s.m.NativeRoleMappingStore] [E1zoynp] Failed to clear cache for realms [[]]
[--26T15::,][INFO ][o.e.g.GatewayService ] [E1zoynp] recovered [] indices into cluster_state
[--26T15::,][INFO ][o.e.c.m.MetaDataIndexTemplateService] [E1zoynp] adding template [.triggered_watches] for index patterns [.triggered_watches*]
[--26T15::,][INFO ][o.e.c.m.MetaDataIndexTemplateService] [E1zoynp] adding template [.watches] for index patterns [.watches*]
[--26T15::,][INFO ][o.e.c.m.MetaDataIndexTemplateService] [E1zoynp] adding template [.watch-history-] for index patterns [.watcher-history-*]
[--26T15::,][INFO ][o.e.c.m.MetaDataIndexTemplateService] [E1zoynp] adding template [.monitoring-logstash] for index patterns [.monitoring-logstash--*]
[--26T15::,][INFO ][o.e.c.m.MetaDataIndexTemplateService] [E1zoynp] adding template [.monitoring-es] for index patterns [.monitoring-es--*]
[--26T15::,][INFO ][o.e.c.m.MetaDataIndexTemplateService] [E1zoynp] adding template [.monitoring-beats] for index patterns [.monitoring-beats--*]
[--26T15::,][INFO ][o.e.c.m.MetaDataIndexTemplateService] [E1zoynp] adding template [.monitoring-alerts] for index patterns [.monitoring-alerts-]
[--26T15::,][INFO ][o.e.c.m.MetaDataIndexTemplateService] [E1zoynp] adding template [.monitoring-kibana] for index patterns [.monitoring-kibana--*]
[--26T15::,][INFO ][o.e.l.LicenseService ] [E1zoynp] license [73b3cfc0-8f81-44ac-bff0-3bbbfff109f4] mode [basic] - valid

  可以看到,默认端口为9300,我们克隆会话,进入wlf用户访问下它:

$ curl http://localhost:
{
"name" : "E1zoynp",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "ygHI0wjdSfy6dCDQitBcvQ",
"version" : {
"number" : "6.5.3",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "159a78a",
"build_date" : "2018-12-06T20:11:28.826501Z",
"build_snapshot" : false,
"lucene_version" : "7.5.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}

  给本机访问是没问题了,但往往我们需要开放端口提供远程访问,这时我们需要通过vi修改配置文件config/elasticsearch.yml,将ip指定为部署机器的ip或者直接设置4个0:

# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0

  以上修改保存还有两个地方要改下,此时不得不使用root用户了,因为要修改的东西在etc目录下,我们先备份sysctl.conf,再通过vi编辑:

# cd /etc
# cp sysctl.conf sysctl.conf.bak
# vi sysctl.conf

  新增配置:

vm.max_map_count=

  最后执行sysctl -p生效:

# sysctl -p

  接着进入etc/security目录修改limit.conf,同样先备份再修改:

# cd /etc/security
# cp limit.conf limit.conf.bak
# vi limit.conf

  新增配置:

* soft nofile
* hard nofile
* soft nproc
* hard nproc

  保存后需要先退出当前用户wlf,重新登陆才能生效。重新登陆后我们使用后台启动elasticsearch:

$ elasticsearch-6.5.
$ nohup bin/elasticsearch &

  现在可以指定ip访问9200了:

linux安装6.5.3版本elastic search的更多相关文章

  1. Linux安装多个Python版本

    服务器上的Python版本太老了,需要安装一个新的Python版本,才能跑我的代码.因为环境的需要,但是又不能卸载老的版本,所以安装一个新的,使用软链来进行升级. 使用系统自带的yum,apt-get ...

  2. linux 安装tensorflow(gpu版本)

    一.安装cuda 具体安装过程见我的另一篇博客,ubuntu16.04下安装配置深度学习环境 二.安装tensorflow 1.具体安装过程官网其实写的比较详细,总结一下的话可以分为两种:安装rele ...

  3. ELASTIC SEARCH 安装

    elastic search 2017年3月18日 安装&使用 环境 表 1 环境信息 Centos cat /etc/issue CentOS release 6.8 (Final) cat ...

  4. SQL数据同步到ELK(二)- Elastic Search 安装

    开篇废话 没错,前面扯了一堆SQL SERVER,其实我连Elastic Search根本没动手玩过(是不是与时代有点脱节了?),那今天我就准备尝试安装一个ELK的简单集群出来(这个集群是使用我的小米 ...

  5. elastic search(es)安装

    全文搜索属于最常见的需求,开源的 Elasticsearch (以下简称 Elastic)是目前全文搜索引擎的首选. 它可以快速地储存.搜索和分析海量数据.维基百科.Stack Overflow.Gi ...

  6. Elastic Search快速上手(1):简介及安装配置

    前言 最近开始尝试学习Elastic Search,因此决定做一些简单的整理,以供后续参考,快速上手使用ES. 简介 ElasticSearch是一个基于Lucene的搜索服务器.它提供了一个分布式多 ...

  7. elastic search安装与本地测试

    elastic search安装与本地测试 elastic search是一个全文搜索引擎 教程: 综合:http://www.ruanyifeng.com/blog/2017/08/elastics ...

  8. Linux下安装SkyWalking 6.1版本 以及.NETCore项目集成

    SkyWalking和APM介绍 今天给大家给大家介绍一下SkyWalking,那什么是SkyWalking Skywalking 是 Apache 基金会下面的一个开源 APM 项目 ,那什么又是A ...

  9. aws ec2 安装Elastic search 7.2.0 kibana 并配置 hanlp 分词插件

    文章大纲 Elastic search & kibana & 分词器 安装 版本控制 下载地址 Elastic search安装 kibana 安装 分词器配置 Elastic sea ...

随机推荐

  1. SQL SERVER使用 CROSS APPLY 与 OUTER APPLY 连接查询

    概述 CROSS APPLY 与 OUTER APPLY 可以做到:      左表一条关联右表多条记录时,我需要控制右表的某一条或多条记录跟左表匹配的情况. 有两张表:Student(学生表)和 S ...

  2. Java - 框架之 Hibernate

    一:hibernate.cfg.xml 配置 <!-- 1.配置数据库连接的4个参数 --> <property name="hibernate.connection.dr ...

  3. oracle: jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 无效的列类型: 1111

    https://www.cnblogs.com/mmlw/p/5808072.html org.mybatis.spring.MyBatisSystemException: nested except ...

  4. 【CSP游记S】

    简略:初三小蒟蒻本想体验一下提高,结果尝到了省选的滋味.fclose没有打,目前不知道会不会有影响,很伤心. day 1 大早上的6:30起床天好黑啊~,想起这次没有面包吃,到华生园买了包熊博士(毕竟 ...

  5. byte[] 转 2进制字符串

    /byte[]转为二进制字符串表示byte[] bytesTest =new byte[]{16,18,33}; string strResult=string.Empty;string strTem ...

  6. 对数据仓库ODS DW DM的理解

    原文链接:https://www.jianshu.com/p/72e395d8cb33 今天看了一些专业的解释,还是对ODS.DW和DM认识不深刻,下班后花时间分别查了查它们的概念. ODS——操作性 ...

  7. 卡林巴琴谱&简谱

    ---------------------------------------------------------------------------------------------------- ...

  8. am335x system upgrade kernel usb stroage(十)

    1      Scope of Document This document describes USB hardware design, support stardard usb2.0 port o ...

  9. fread和fwrite和feof读写二进制文件

    #include <stdio.h> #include <stdlib.h> void text_to_bin(char *argv[]); void bin_to_text( ...

  10. 利用fgetc合并2个源文件的内容,到一个新的文件中

    #include <stdio.h> #include <stdlib.h> //功能: 合并2个源文件的内容,到一个新的文件中 int main(int a,char *ar ...