yum install epel-release
yum install -y supervisor

默认配置文件:/etc/supervisord.conf 
进程管理配置文件放到:/etc/supervisord.d/目录下即可

进程配置文件如下实例:

[program:test-server]
process_name=%(program_name)s
command = /home/
directory = /home/test-server
autostart = true
startsecs = 5
autorestart = true
startretries = 3
user = root
redirect_stderr = true
stdout_logfile_maxbytes = 20MB
stdout_logfile_backups = 10
stdout_logfile = /var/log/test-server.log

使用

supervisorctr restart start stop 等等

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2022-01-31
  • 2021-12-08
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2021-12-16
  • 2022-02-07
  • 2021-09-14
  • 2021-09-14
相关资源
相似解决方案