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. sqlserver智能提示插件-sql prompt(9.4.6)的安装及注册流程

    官网下在地址:https://www.red-gate.com/products/sql-development/sql-prompt/ CSDN下载地址(对应的版本是9.4.6,其中包含安装包和注册 ...

  2. Python实现12306自动查票程序

    这是在网上扒拉过来的,原文链接: http://blog.csdn.net/An_Feng_z/article/details/78631290 目前时间2018/01/04 文中各种接口均为可用,亲 ...

  3. html css样式子元素相对父级元素定位

    废话不多说. 父级元素 样式设置: position:relative; 子元素样式: position: absolute; 这样就可以达到子元素相对父级元素定位了.

  4. 洛谷 P1047 校门外的树

    #include<iostream> #include<vector> #include<algorithm> using namespace std; ]; in ...

  5. shell if判断写成一行

    [[ $? -eq 0 ]] && echo "backup $i success" || exit #判断上一个命令是否执行正确,退出状态吗如果为0,则执行ech ...

  6. Angular/cli 安装(windows环境)。

    1.卸载先前安装的Angular/cli npm uninstall -g angular-clinpm uninstall --save-dev angular-clinpm uninstall - ...

  7. oracle存储过程调试报错  ORA-0131 Insufficient privileges 处理

    必须使用oracle用户登录oracle@sqlplus system/system123 as sysdba 以SYS用户登录数据库,执行赋权操作: grant  DEBUG CONNECT SES ...

  8. Apache Druid架构原理与应用场景

    为了帮助卖家提高运营水平,卖家管理后台会展示一些访客.订单等趋势和指标数据,如PV,UV,转化率,GMV等: 这些指标的计算依靠前端埋点和订单详情等数据,其特点是数据量大,并有一定的实时性要求. Dr ...

  9. 学习Mathematica

    [转载请注明出处]http://www.cnblogs.com/mashiqi 2017/12/07 0.杂: Mathematica的自带函数的首字母一定是大写的,参数输入要用中括号[],而不是圆括 ...

  10. sublime快捷键使用

    sublime常用快捷键 自己觉得比较实用的sublime快捷键有: Ctrl+/..................注释 Ctrl+滚动..................字体变大.缩小 Ctrl+ ...