es-部署

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`

  

 

猜你喜欢

转载自www.cnblogs.com/jabbok/p/12900886.html