到官网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. 「NOI2012」骑行川藏

    「NOI2012」骑行川藏 题目描述 蛋蛋非常热衷于挑战自我,今年暑假他准备沿川藏线骑着自行车从成都前往拉萨. 川藏线的沿途有着非常美丽的风景,但在这一路上也有着很多的艰难险阻,路况变化多端,而蛋蛋的 ...

  2. LightOJ - 1226 - One Unit Machine(排列组合)

    链接: https://vjudge.net/problem/LightOJ-1226 题意: OUM is a one unit machine which processes jobs. Sinc ...

  3. Joomla 3.4.6 远程代码执行 漏洞复现

    使用利用工具 https://github.com/YangSirrr/Joomla-3.4.6-RCE http://192.168.43.230/Joomla//configuration.php ...

  4. 使用apache 的 ab命令压力测试nginx服务器

    nginx压力测试方法: #ab命令 #安装ab #Centos系统 yum install apr-util #Ubuntu系统 sudo apt-get install apache2-utils ...

  5. 叉积_判断点与三角形的位置关系 P1355 神秘大三角

    题目描述 判断一个点与已知三角形的位置关系. 输入输出格式 输入格式: 前三行:每行一个坐标,表示该三角形的三个顶点 第四行:一个点的坐标,试判断该点与前三个点围成三角形的位置关系 (详见样例) 所有 ...

  6. Processing玩抠图

    突然兴起想玩一下抠图,试着用自带的Example\video来改,花了一个中午做了个小样: 分别是白色为底与黑色为底的效果,代码如下: import processing.video.*; int n ...

  7. Spring MVC国际化配置

    Spring MVC国际化配置 前言 项目开发中要考虑支持国际化,框架选用的是Spring MVC框架,那么问题来了Spring MVC如何配置并实现国际化. 实现过程(Maven项目) 对于Spri ...

  8. return关键字

    注意:如果一个函数的返回值类型是具体的数据类型,那么该函数就必须要保证在任意情况下都保证有返回值(除了返回值类型是void)     return  关键字的作用: 1   返回数据给函数的调用者. ...

  9. NAT双线路配置详解

  10. CentOS安装相应版本的内核源码

    昨天接到同事给安排的新任务,测试系统性能:网上查了些资料,目测perf功能很强大,而且是内核源码自带的,编译安装即可使用:看了下自己的虚拟机,没有内核源码,好吧,装一个: 查看一下系统版本: #cat ...