博客
关于我
架构师成长记_第八周_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 中读取 CSV 文件-ChatGPT4o作答
查看>>
python请求html_使用Python请求获取HTML?
查看>>
Python 之匿名函数和偏函数
查看>>
python 之栈的实现
查看>>
python语音播放
查看>>
python语言:装饰器原理
查看>>
Python 交互式数据可视化详解
查看>>
python语言有哪些优点和缺点_Python有哪些优缺点,你了解吗?
查看>>
Python 从入门到精通:30天速成教程到底有多狠?你能坚持下来吗?
查看>>
Python 从数据库中存储和检索密码的最安全方法
查看>>
Python语言及其应用 - 知识点遍历
查看>>
Python 优化提速的 8 个小技巧
查看>>
Python 余弦相似度与皮尔逊相关系数 计算
查看>>
python 使用execjs 报编码错误解决办法,UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xac in position 145: il
查看>>
python 使用filetype校验文件
查看>>
Python 使用flush函数将缓冲区数据立即写磁盘
查看>>
python 使用in判断不准确,in不好使
查看>>
Python 使用pandas 进行查询和统计详解
查看>>
Redis 配置文件redis.conf详细解释
查看>>
python网络爬虫(2)——scrapy框架的基础使用
查看>>