首页 > 代码库 > 以supervisord启动elasticsearch
以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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。