supervisor守护进程的安装使用

yum install -y epel-release

yum install -y supervisor

/etc/init.d/supervisord restart

[root@zabbix ~]# 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

[root@kaifa-develop ~]# 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

上一篇:保证分布式系统数据一致性的6种方案


下一篇:【精选】六款JavaWeb项目源码下载