supervisor 参数配置,tocmat参数,jar参数,redis参数

tocmat 参数:

[program:tomcat]
command=/secureaccess/apache-tomcat-8.5.35/bin/catalina.sh run
stdout_logfile=/secureaccess/apache-tomcat-8.5.35/logs/catalina.out
autostart=true
autorestart=true
startsecs=5
priority=4
stopasgroup=true
killasgroup=true
user=root
environment=JAVA_HOME="/opt/jdk1.8.0_131",JAVA_BIN="/opt/jdk1.8.0_131/bin"

jar 参数:

[program:workOrderManage-1.0-SNAPSHOT.jar] 
directory= /secureaccess/workOrder/
command=/opt/jdk1.8.0_131/bin/java -jar workOrderManage-1.0-SNAPSHOT.jar
stdout_logfile=/var/log/workOrderManage-1.0-SNAPSHOT_stdout.out
stderr_logfile=/var/log/workOrderManage-1.0-SNAPSHOT_stderr.out
environment=MALLOC_ARENA_MAX="1",
            JAVA_HOME="/opt/jdk1.8.0_131",
            JAVA_BIN="/opt/jdk1.8.0_131/bin"
priority=2
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=root

redis 参数:

[program:redis-server]
command=/usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf
priority=999                ; 优先级(越小越优先)
autostart=true              ; supervisord启动时,该程序也启动
autorestart=true            ; 异常退出时,自动启动
startsecs=10                ; 启动后持续10s后未发生异常,才表示启动成功
startretries=3              ; 异常后,自动重启次数
exitcodes=0,2               ; exit异常抛出的是0、2时才认为是异常
stopsignal=QUIT             ; 杀进程的信号
stopwaitsecs=1
user=root                   ; 设置启动该程序的用户
log_stdout=true             ; 如果为True,则记录程序日志
log_stderr=false            ; 如果为True,则记录程序错误日志
logfile=/var/log/redis-server.log    ; 程序日志路径
logfile_maxbytes=1MB        ; 日志文件最大大小
logfile_backups=10          ; 日志文件最大数量

 

posted @ 2020-09-25 14:41  招财大龙猫  阅读(263)  评论(0编辑  收藏  举报