博客
关于我
架构师成长记_第八周_02_ Centos安装分布式搜索引擎 ElasticSearch
阅读量:102 次
发布时间:2019-02-26

本文共 1218 字,大约阅读时间需要 4 分钟。

Elasticsearch ????

Elasticsearch ????

1. ????? elasticsearch ?

? elasticsearch ???? CentOS 140 ??????????????????

tar -zxvf elasticsearch-7.4.2-linux-x86_64.tar.gzmv elasticsearch-7.4.2 /usr/local/

2. ?? Elasticsearch

?? elasticsearch ???????????

cd /usr/local/elasticsearch-7.4.2/mkdir datacd config

?? elasticsearch.yml ??????????

vim elasticsearch.yml

?????????????? jvm.options ????? JVM ???

vim jvm.options

3. ????????

?? esuser ????????

useradd esuserchown -R esuser /usr/local/elasticsearch-7.4.2chown -R esuser:esuser /usr/local/elasticsearch-7.4.2

4. ?? Elasticsearch

?? bin ?????? esuser ???????

cd bin/su esuser./elasticsearch

????????????????

./elasticsearch -d

5. ????

?? /etc/security/limits.conf ????????????

vim /etc/security/limits.conf

??????????

* soft nofile 65535* hard nofile 131072* soft nproc 2048* hard nproc 4096

?? /etc/sysctl.conf ??????????

vim /etc/sysctl.conf

??????????

vm.max_map_count=262145

?????? sysctl ???

sysctl -p

??? esuser ??????? Elasticsearch?

su esuser./elasticsearch

6. ????

??????? Elasticsearch ????????????

7. ????

  • Elasticsearch ??????????????
  • ????????? root ???????????
chown -R esuser:esuser /usr/local/elasticsearch-7.4.2

?????????? Elasticsearch ? CentOS ??????????

转载地址:http://bhyk.baihongyu.com/

你可能感兴趣的文章
python办公自动化基础输出文件和文件夹
查看>>
python办公自动化基础搜索文件
查看>>
python前端之css
查看>>
Python制作进度条,原来有这么多方法
查看>>
Python制作简单的学生成绩管理系统
查看>>
python制作甘特图的基本知识(附Demo)
查看>>
python制作一个简单的服务器,【Python】 做一个简单的 http 服务器
查看>>
Python到底能做什么?它的优点在哪?
查看>>
python利用pytorch库导出图像分割算子
查看>>
python利用pyshark监听网卡来抓包其中pyshark中摸索的一些可用参数
查看>>
python利用excel分析过杀漏失
查看>>
python判断汉字数目
查看>>
python判断文件是空的,如果是空的,就删除
查看>>
python判断密码是否正确_python密码判断是否符合要求的方法
查看>>
python判断字符串包含中文_Python 判断字符串是否包含中文
查看>>
python删除第一行_Python 乱码指北:一行删掉根目录
查看>>
Python删除列表元素的三种方法
查看>>
python初步学习-python数据类型-集合(set)
查看>>
python列表生成字典_Python中将字典转换为列表的方法
查看>>
python列表对应元素合并为列表及判断一个列表是几维
查看>>