Elasticsearch-6.7.0系列(一)9200端口 .tar.gz版本centos7环境--下载安装运行
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环境--下载安装运行的更多相关文章
- 如何用elasticsearch构架亿级数据采集系统(第1集:非生产环境windows安装篇)
(一)做啥的? 基于Elasticsearch,可以为实现,大数据量(亿级)的实时统计查询的方案设计,提供底层数据框架. 本小节jacky会在非生产环境下,在 window 系统下,给大家分享着部分的 ...
- linux/centos elasticsearch 环境搭建 安装 运行 使用
环境搭建也是有些坑的存在,所以整理了一下搭建流程,安全无痛. ElasticSearch是一个开源的分布式搜索引擎,具备高可靠性,支持非常多的企业级搜索用例. 一.java 环境 直接apt安装火箭一 ...
- 3.0 zookeeper的集群介绍、搭建、环境、安装
zookeeper是本身是一种分布式协调服务(英文意思动物园园长因为Hadoop就是一个动物园,storm.hadoop.kafkaka.hbaser都是基于zookeeper开发的) 原理:Zook ...
- Win10环境下载安装MySQL Community 8.0.12
1.下载MySQL Community 8.0.12的免安装版,下载地址:https://dev.mysql.com/downloads/mysql/ 2.解压到D:\Program Files\My ...
- 阿里云服务器centos7环境下安装xampp后,mysql有进程,但是却没有监听3306端口
配置阿里云服务器centos7中xampp环境时出现了一种情况: 在centos中可以使用命令进入mysql 修改后也可以远程用phpmyadmin连接mysql 但是用navicat却无法连接 先修 ...
- 重要消息:MoviePy v2.0.0.dev1预发布版本已经可以下载安装使用
☞ ░ 前往老猿Python博文目录 ░ 刚刚得知,MoviePy v2.0.0.dev1版本已经预发布,据说解决了多语言支持及TextClip等一系列Bug,大家不妨升级使用.升级指令:pip in ...
- Elasticsearch-6.7.0系列-Joyce博客总目录
官方英文文档地址:https://www.elastic.co/guide/index.html Elasticsearch博客目录 Elasticsearch-6.7.0系列(一)9200端口 . ...
- Elasticsearch-6.7.0系列(二)ES集群安装与验证
准备3台centos7机器/虚拟机,每台都安装上elasticsearch6.7.0 ,安装过程参考我的另一篇博客<Elasticsearch-6.7.0系列(一)9200端口 .tar.gz版 ...
- Elasticsearch-6.7.0系列(五)5044端口 logstash安装
centos7环境 下载logstash wget https://artifacts.elastic.co/downloads/logstash/logstash-6.7.0.tar.gz ...
随机推荐
- 数据结构—头插法逆转单链表——空间复杂度为O(1)
#if 1 #include<stdio.h> #include<stdlib.h> #include<iostream> using namespace std; ...
- Java中8种常见的排序方法
排序方法的演示1)插入排序(直接插入排序.希尔排序)2)交换排序(冒泡排序.快速排序)3)选择排序(直接选择排序.堆排序)4)归并排序5)分配排序(基数排序)所需辅助空间最多:归并排序所需辅助空间最少 ...
- Linux环境下nginx集群搭建
#确保安装nginx,stream模块默认不安装的,需要手动添加参数:–with-stream, nginx1.9或以上版本 #nginx.conf文件中,添加以下内容(只供参考),这个不能放在htt ...
- python-django-01
1.Python工具 - pip 1.作用 Python的软件包管理器,有一些python包被集成到了pip中.只要被集成到pip中的包,都允许通过pip直接安装 2.安装 pip sudo apt ...
- 科学计算库Numpy(1)
Numpy 一,数据结构 数据类型: ndarray import numpy world_alchol = numpy.genfromtxt('world_alchol.txt',delimiter ...
- LeetCode 852. Peak Index in a Mountain Array C++ 解题报告
852. Peak Index in a Mountain Array -- Easy 方法一:二分查找 int peakIndexInMountainArray(vector<int>& ...
- hive最全学习线路和实践练习
非原创,源自:https://www.cnblogs.com/snowbook/p/5723767.html hive被大多数企业使用,学习它,利于自己掌握企业所使用的技术,这里从安装使用到概念.原理 ...
- javascript第一个作业之网页计算器
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- spring定时器cron
关于cron表达式(参考资料):Cron 表达式包括以下 7 个字段: 秒 分 小时 月内日期 月 周内日期 年(可选字段) 特殊字符Cron 触发器利用一系列特殊字符,如下所示: 反斜线(/)字符表 ...
- 银行家算法C++程序
此程序在Windows10 CodeBlocks17.12环境下测试运行,其他编程环境未经测试! 作业需求↓↓↓↓↓↓ 运行效果图如下 (codeblocks下载地址http://www.cod ...