全文检索ES 服务启动和关闭

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了全文检索ES 服务启动和关闭相关的知识,希望对你有一定的参考价值。

 

nohup ./elasticsearch &  可以后台开启elasticsearch服务

ps-ef列出所有进程

ps-ef | grep elastic...查找elastic。。的进程

kill  进程数字(如:1932,对应java开头的进程)

 

例子如下:

login as: elasticsearch

[email protected]‘s password:

Last login: Wed Sep 21 11:29:06 2016 from 172.16.42.225

[[email protected] ~]$ cd elasticsearch

[[email protected] elasticsearch]$ cd bin

[[email protected] bin]$ ps -ef | grep elas

root      1233  1646  0 10:26 ?        00:00:00 sshd: elasticsearch [priv]

500       1237  1233  0 10:26 ?        00:00:00 sshd: [email protected]/2

500       2468     1 23 11:30 ?        00:00:16 /usr/bin/java -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Djna.nosys=true -Des.path.home=/usr/elasticsearch/elasticsearch -cp /usr/elasticsearch/elasticsearch/lib/elasticsearch-2.1.1.jar:/usr/elasticsearch/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch start

root      2567  1646  0 11:30 ?        00:00:00 sshd: elasticsearch [priv]

500       2572  2567  0 11:31 ?        00:00:00 sshd: [email protected]/0

500       2598  2573  0 11:31 pts/0    00:00:00 grep elas

[[email protected] bin]$ kill 2468

[[email protected] bin]$ nohup ./elasticsearch &

[1] 2608

[[email protected] bin]$ nohup: ignoring input and appending output to `nohup.out

以上是关于全文检索ES 服务启动和关闭的主要内容,如果未能解决你的问题,请参考以下文章

后台启动es head,关闭shell后es head自动关闭

Oracle启动和关闭监听服务的启动/关闭

Mysql服务启动和关闭和Mysql登陆和退出

MySQL的启动和关闭

如何启动,关闭和重启VMware vCenter Server Appliance服务

Mac 启动和关闭rabbitmq