1. 程式人生 > >supervisor守護程序的安裝使用

supervisor守護程序的安裝使用

yum install -y epel-release

yum install -y supervisor

/etc/init.d/supervisord restart

[[email protected] ~]# vim /etc/supervisord.conf

[program:eatjoys]
directory=/work/service/eatjoys
command=java -Xmn512m -Xms768m -Xmx1024m -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8
autostart=true
autorestart=true
stdout_logfile=/var/logs/eatjoys.log
stderr_logfile=/var/logs/eatjoys.log

[[email protected] ~]# supervisorctl

default commands (type help ):

add exit open reload restart start tail 
avail fg pid remove shutdown status update
clear maintail quit reread signal stop version

原文連結