到官网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. 倍增法求lca:暗的连锁

    https://loj.ac/problem/10131 #include<bits/stdc++.h> using namespace std; struct node{ int to, ...

  2. 一 创建一个springboot项目之(微信点餐系统的设计与开发)

    第一步:收到项目需求,进行数据库表的设计. 1.角色的划分: 卖家:  订单,类目 买家:  商品列表 2.功能模块的划分: 商品:商品列表 订单:  订单创建,订单查询,订单取消 类目:基于管理的功 ...

  3. 抖音热门BGM爬虫下载

    下午无聊在某网上刷了会儿抖音,发现有些音乐还是挺好听的,可以用来做手机铃声,于是想办法从某网上把歌曲爬下来 附上代码: #!/usr/bin/env python # -*- coding: utf- ...

  4. Spring源码窥探之:Condition

    采用注解的方式来注入bean 1. 编写config类 /** * @author 70KG * @Title: ConditionConfig * @Description: * @date 201 ...

  5. 堆以及stl堆的使用

    概念 性质: 1.堆是一颗完全二叉树,用数组实现.    2.堆中存储数据的数据是局部有序的. 最大堆:1.任意一个结点存储的值都大于或等于其任意一个子结点中存储的值.      2.根结点存储着该树 ...

  6. (转载) 从0开始搭建SQL Server AlwaysOn 第三篇(配置AlwaysOn)

    这一篇是从0开始搭建SQL Server AlwaysOn 的第三篇,这一篇才真正开始搭建AlwaysOn,前两篇是为搭建AlwaysOn 做准备的 步骤 这一篇依然使用step by step的方式 ...

  7. S1_搭建分布式OpenStack集群_01 准备虚拟机

    Openstack版本:openstack-queen 版本 一.环境准备 网络规划: Management + API Network:10.10.11.0/24 eth1    网桥:br1 VM ...

  8. 关于Pi

  9. 《挑战30天C++入门极限》C/C++中字符指针数组及指向指针的指针的含义

        C/C++中字符指针数组及指向指针的指针的含义 就指向指针的指针,很早以前在说指针的时候说过,但后来发现很多人还是比较难以理解,这一次我们再次仔细说一说指向指针的指针. 先看下面的代码,注意看 ...

  10. bee api new

    bee api appcode -conn="root:root@tcp(127.0.0.1:3306)/test"