首页 > 其他 > 详细

es-部署

时间:2020-05-16 16:45:48      阅读:48      评论:0      收藏:0      [点我收藏+]

https://www.elastic.co/guide/en/elasticsearch/reference/6.5/zip-targz.html#zip-targz

 

修改参数

cat /etc/sysctl.conf 

vm.max_map_count=262144
# cat /etc/security/limits.conf
root soft nofile 655350
root hard nofile 655350
* soft nofile 655360
* hard nofile 655360

  

添加用户(es不允许root启动)

useradd es

  

前台启动(用于测试)

su es -c ‘./bin/elasticsearch ‘

  

后台启动

su es -c ./bin/elasticsearch -d -p pid

进程 ID 记录在文件中,

要关闭弹性搜索,请终止文件中记录的进程 ID:pid

 

kill `cat pid`

  

 

 

es-部署

原文:https://www.cnblogs.com/jabbok/p/12900886.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!