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 ...
随机推荐
- springboot 报错 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported
开始 controller 方法写的是 @RequestMapping( value = "/add", method = RequestMethod.POST ) public ...
- UVA548 tree的思路
唔,首先这题给出了中序遍历和后序遍历要求我们求出, 一个叶子节点到根的数值总和最小,且这个叶子节点是最小的那个 这题的难点在于如何运用中序遍历和后序遍历还原整棵树, 这里有两个方法: 1. 递归构造原 ...
- C#参考教程 http://www.csref.cn
推荐 C#参考教程 http://www.csref.cn
- python 发送163邮件
可能还需要使用 邮箱第三方客户端的授权码. 网易163免费邮箱相关服务器信息 from email import encoders from email.header import Header fr ...
- 事务的ACID特性(转)
ACID特性 数据库中的事务(Transaction)有四个特性,分别是:原子性(Atomicity),一致性(Consistency),隔离性(lsolation),持久性(Durability) ...
- [err]Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in <module> from pip._internal import main ImportError: No module named 'pip._internal'
Q: Traceback (most recent call last):File "/usr/local/bin/pip", line 7, in <module>f ...
- 【软件安装与环境配置】TX2安装配置caffe过程
Tx2刷机 sudo sh ./caffe_dependency.sh 注意python的版本问题. 问题 LD -o .build_release/lib/libcaffe.so. /usr/bin ...
- hyperscan应用参数
>>hs_compile_ext_multi 使用额外的参数编译表达式, 额外的参数包括: MIN_OFFSET 距离开始的最小偏移开始匹配 MAX_OFFSET 距离开始的最大偏移结束匹 ...
- paddlepaddle
1. 训练过程中cost出现nan 可能是因为有脏数据,寻找脏数据的方法就是,设置batch_size=1, paddle.reader.shuffle 中buf_size=1 一条一条的进行训练,看 ...
- python中random模块的使用
import random random.random() 产生0-1间的随机小数 >>> res = random.random() >>> print(res) ...