https://www.elastic.co/guide/index.html(推荐)        ES官方英文原版文档,一般会更新到最新版本

https://www.elastic.co/cn/downloads/        ES下载地址

https://www.cnblogs.com/zhuwenjoyce/p/10632628.html         安装jdk1.8

下载 Elasticsearch6.7.0

cd /home/soft

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.7.0.tar.gz     建议离线下载elasticsearch

tar -zxvf elasticsearch-6.7.0.tar.gz       解压

./bin/elasticsearch      尝试启动ES

备注: network.host: 0.0.0.0        如需远程连接ES,需修改elasticsearch.yml,把其中的network.host改成0.0.0.0

不能以root用户启动 can not run elasticsearch as root

useradd elastic       新建linux用户elastic

chown -R elastic:elastic elasticsearch-6.7.0       赋予elastic用户和组读写es目录权限

su elastic         从root用户切换到elastic用户

普通用户获取文件夹读写权限:

chmod  elasticsearch-6.7.             赋予elastic用户目录所有权权限       

或者加sudo命令:sudo chmod -R  elasticsearch-6.7.

获得sudo命令使用权的方法  https://www.cnblogs.com/zox2011/archive/2013/05/28/3103824.html

cd elasticsearch-6.7.0/                 进入ES目录

./bin/elasticsearch          前台启动es,ctrl + c 终止。

./bin/elasticsearch -d       后台启动es,停止方法如下截图:

es启动和停止服务命令:

sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service

验证启动成功: http://localhost:9200/?pretty

有用的URL

URL  
http://192.168.10.110:9200/ 基本信息
http://192.168.10.110:9200/_all/_search?pretty 搜索引擎数据
http://192.168.10.110:9200/_xpack/security/_authenticate?pretty  权限信息
http://192.168.10.110:9200/_license 许可证信息
http://192.168.10.110:9200/_xpack xpack信息
http://192.168.10.110:9200/_cluster/state?pretty 集群信息

ES常见启动错误

ES安装目录/logs/elasticsearch.log可以查看启动日志。除了不能以root用户启动ES意外,还有3个常见启动错误:

ERROR: [3] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2]: max number of threads [3766] for user [elastic] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

[1][2]两个错误解决方法:

vim /etc/security/limits.conf

增加以下配置:

*                soft    nofile          65536
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096

[3]解决方法:

vim /etc/sysctl.conf

vm.max_map_count=262144      增加这行配置

sysctl -p          重新生效配置文件sysctl.conf

cd  ES安装目录

./bin/elasticsearch -d          后台启动,注意不要使用root用户启动。

浏览器打开验证:http://localhost:9200/_all/_search?pretty

Elasticsearch-6.7.0系列(一)9200端口 .tar.gz版本centos7环境--下载安装运行的更多相关文章

  1. 如何用elasticsearch构架亿级数据采集系统(第1集:非生产环境windows安装篇)

    (一)做啥的? 基于Elasticsearch,可以为实现,大数据量(亿级)的实时统计查询的方案设计,提供底层数据框架. 本小节jacky会在非生产环境下,在 window 系统下,给大家分享着部分的 ...

  2. linux/centos elasticsearch 环境搭建 安装 运行 使用

    环境搭建也是有些坑的存在,所以整理了一下搭建流程,安全无痛. ElasticSearch是一个开源的分布式搜索引擎,具备高可靠性,支持非常多的企业级搜索用例. 一.java 环境 直接apt安装火箭一 ...

  3. 3.0 zookeeper的集群介绍、搭建、环境、安装

    zookeeper是本身是一种分布式协调服务(英文意思动物园园长因为Hadoop就是一个动物园,storm.hadoop.kafkaka.hbaser都是基于zookeeper开发的) 原理:Zook ...

  4. Win10环境下载安装MySQL Community 8.0.12

    1.下载MySQL Community 8.0.12的免安装版,下载地址:https://dev.mysql.com/downloads/mysql/ 2.解压到D:\Program Files\My ...

  5. 阿里云服务器centos7环境下安装xampp后,mysql有进程,但是却没有监听3306端口

    配置阿里云服务器centos7中xampp环境时出现了一种情况: 在centos中可以使用命令进入mysql 修改后也可以远程用phpmyadmin连接mysql 但是用navicat却无法连接 先修 ...

  6. 重要消息:MoviePy v2.0.0.dev1预发布版本已经可以下载安装使用

    ☞ ░ 前往老猿Python博文目录 ░ 刚刚得知,MoviePy v2.0.0.dev1版本已经预发布,据说解决了多语言支持及TextClip等一系列Bug,大家不妨升级使用.升级指令:pip in ...

  7. Elasticsearch-6.7.0系列-Joyce博客总目录

     官方英文文档地址:https://www.elastic.co/guide/index.html Elasticsearch博客目录 Elasticsearch-6.7.0系列(一)9200端口 . ...

  8. Elasticsearch-6.7.0系列(二)ES集群安装与验证

    准备3台centos7机器/虚拟机,每台都安装上elasticsearch6.7.0 ,安装过程参考我的另一篇博客<Elasticsearch-6.7.0系列(一)9200端口 .tar.gz版 ...

  9. Elasticsearch-6.7.0系列(五)5044端口 logstash安装

    centos7环境 下载logstash wget https://artifacts.elastic.co/downloads/logstash/logstash-6.7.0.tar.gz      ...

随机推荐

  1. 怎样检测TCP/UDP端口的连通性

    1 TCP端口的连通性 TC端口的连通性,一般通过telnet检测: TCP协议是面向连接的,可以直接通过telnet命令连接 telnet host-ip port 2 UDP端口的连通性 因为公司 ...

  2. ES6箭头函数Arrow Function

    果然,隔了很长时间都没有来博客园上逛了...... 前一段时间一直在忙我们参加的一个比赛,转眼已经好久没有来逛过博客园了,果然还是很难坚持的...... 今天总算还是想起来要过来冒个泡,强行刷一波存在 ...

  3. 如何利用伪类元素和vertical-align: middle;实现元素相对于父元素居中

    HTML部分 <div class="zhihu"> <div class="loginMain"> </div> < ...

  4. ajax成功返回结果字符串,对比不成功的解决办法

    这是很久之前遇到的问题了,今天不小心又遇到了,总结了一下以前处理的办法. 废话不说,上代码: $.ajax({ url:"exit.do", data:{account:accou ...

  5. 面试中linux常见的20个命令

    1.查找文件 find / -name filename.txt 根据名称查找/目录下的filename.txt文件. 2.查看一个程序是否运行 ps –ef|grep tomcat 查看所有有关to ...

  6. Redis的主从复制(十一)

    1>什么是主从复制 持久化保证了即使redis服务重启也不会丢失数据,因为redis服务重启后(在使用aof和rdb方式时,如果redis重启,则数据从aof文件加载)会将硬盘上持久化的数据恢复 ...

  7. unicode,gbk,utfF-8字符编码方式的区别

    一.编码历史与区别 一直对字符的各种编码方式懵懵懂懂,什么ANSI UNICODE UTF-8 GB2312 GBK DBCS UCS……是不是看的很晕,假如您细细的阅读本文你一定可以清晰的理解他们. ...

  8. MySQL_优化

    MySQL优化(http://www.cnblogs.com/zengkefu/p/5683438.html) 1.explain+索引. 在你要查询的语句前加explain,看下有没有用到索引,如果 ...

  9. ServletContext、ServletRequest和HttpSession的生命周期

    学习web的Listener监听器的时,监听域对象创建的监听器.通过监听器重新分析着三个对象的生命周期,清晰明了. 首先域对象的监听器有三个ServletContextListene.ServletR ...

  10. 【转存】阿里云服务器下 LAMP 环境配置 —— 基于 CentOS 6.3

    阿里云服务器下 LAMP 环境配置 —— 基于 CentOS 6.3  Posted on 2016年2月10日 by  学院君 1.Apache 配置 —————————————————– vi / ...