标签:zookeeper 自启动 logfile 开机自启动 java_home 添加 jdk systemctl 网页
Ubuntu16.04部署supervisorapt-get install -y supervisor
systemctl start supervisor
systemctl enable supervisor
实例:
supervisor 配置文件
编辑配置文件:
vim /etc/supervisor/supervisord.conf
添加:(开启supervisor网页功能)
[inet_http_server]
port=0.0.0.0:9001
username=user
password=123
cd /etc/supervisor/conf.d/
vim zk.conf
---------------------------------------------------------
[program:zk]
command = /usr/zookeeper-3.4.10/bin/zkServer.sh start-foreground
environmen=JAVA_HOME="/usr/jdk1.8"
user = root
autostart = true
autorestart = true
startsecs = 5
redirect_stderr = true
stopasgroup = true
ikillasgroup = true
stdout_logfile_maxbytes = 50MB
stdout_logfile_backups = 10
stdout_logfile = /var/log/supervisor/zk.log
标签:zookeeper 自启动 logfile 开机自启动 java_home 添加 jdk systemctl 网页
原文地址:https://blog.51cto.com/mfl0801/2484917