以supervisord启动elasticsearch
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了以supervisord启动elasticsearch相关的知识,希望对你有一定的参考价值。
1. 安装epel源
2. 安装supervisor
yum -y install supervisor
3. 配置supervisord
[program:elasticsearch] command=su -c "/usr/local/data/elasticsearch/bin/elasticsearch" es directory=/usr/local/data/elasticsearch numprocs=1 autostart=true
4.启动supervisord
/etc/init.d/supervisord restart Stopping supervisord: [ OK ] Starting supervisord: [ OK ] ps -ef | grep java es 30896 30895 93 02:43 ? 00:00:02 /usr/local/data/jdk1.8.0_91//bin/java -Xms2g -Xmx2g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -XX:+HeapDumpOnOutOfMemoryError -Des.path.home=/usr/local/data/elasticsearch -cp /usr/local/data/elasticsearch/lib/elasticsearch-5.1.1.jar:/usr/local/data/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch root 30927 21121 0 02:43 pts/0 00:00:00 grep java
本文出自 “不抛弃!不放弃” 博客,请务必保留此出处http://thedream.blog.51cto.com/6427769/1893192
以上是关于以supervisord启动elasticsearch的主要内容,如果未能解决你的问题,请参考以下文章